Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,296 for mod$ (0.13 sec)

  1. guava/src/com/google/common/math/IntMath.java

       *
       * <pre>{@code
       * mod(7, 4) == 3
       * mod(-7, 4) == 1
       * mod(-1, 4) == 3
       * mod(-8, 4) == 0
       * mod(8, 4) == 0
       * }</pre>
       *
       * @throws ArithmeticException if {@code m <= 0}
       * @see <a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.17.3">
       *     Remainder Operator</a>
       */
      public static int mod(int x, int m) {
        if (m <= 0) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/fiat/p224_fiat64.go

    //
    // Preconditions:
    //
    //	0 ≤ eval arg1 < m
    //
    // Postconditions:
    //
    //	eval out1 mod m = (eval arg1 * ((2^64)⁻¹ mod m)^4) mod m
    //	0 ≤ eval out1 < m
    func p224FromMontgomery(out1 *p224NonMontgomeryDomainFieldElement, arg1 *p224MontgomeryDomainFieldElement) {
    	x1 := arg1[0]
    	var x2 uint64
    	_, x2 = bits.Mul64(x1, 0xffffffffffffffff)
    	var x4 uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 05 21:53:03 UTC 2022
    - 43.2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/help/helpdoc.go

    	GOHOSTOS
    		The operating system (GOOS) of the Go toolchain binaries.
    	GOMOD
    		The absolute path to the go.mod of the main module.
    		If module-aware mode is enabled, but there is no go.mod, GOMOD will be
    		os.DevNull ("/dev/null" on Unix-like systems, "NUL" on Windows).
    		If module-aware mode is disabled, GOMOD will be the empty string.
    	GOTOOLDIR
    		The directory where the go tools (compile, cover, doc, etc...) are installed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  4. src/cmd/go/main.go

    	if len(cmd.Commands) > 0 {
    		if used >= len(args) {
    			help.PrintUsage(os.Stderr, cmd)
    			base.SetExitStatus(2)
    			base.Exit()
    		}
    		if args[used] == "help" {
    			// Accept 'go mod help' and 'go mod help foo' for 'go help mod' and 'go help mod foo'.
    			telemetry.Inc("go/subcommand:" + strings.ReplaceAll(cfg.CmdName, " ", "-") + "-" + strings.Join(args[used:], "-"))
    			help.Help(os.Stdout, append(slices.Clip(args[:used]), args[used+1:]...))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. src/cmd/go/internal/vcs/vcs.go

    			errImportMismatch.mismatches = append(errImportMismatch.mismatches, im.Prefix)
    			continue
    		}
    
    		if match >= 0 {
    			if imports[match].VCS == "mod" && im.VCS != "mod" {
    				// All the mod entries precede all the non-mod entries.
    				// We have a mod entry and don't care about the rest,
    				// matching or not.
    				break
    			}
    			return metaImport{}, fmt.Errorf("multiple meta tags match import path %q", importPath)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/IntMath.java

       *
       * <pre>{@code
       * mod(7, 4) == 3
       * mod(-7, 4) == 1
       * mod(-1, 4) == 3
       * mod(-8, 4) == 0
       * mod(8, 4) == 0
       * }</pre>
       *
       * @throws ArithmeticException if {@code m <= 0}
       * @see <a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.17.3">
       *     Remainder Operator</a>
       */
      public static int mod(int x, int m) {
        if (m <= 0) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/LongMathTest.java

        long x = 1000000000000L;
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertEquals(12, LongMath.log10(x, mode));
        }
      }
    
      @GwtIncompatible // TODO
      public void testSqrtNegativeAlwaysThrows() {
        for (long x : NEGATIVE_LONG_CANDIDATES) {
          for (RoundingMode mode : ALL_ROUNDING_MODES) {
            try {
              LongMath.sqrt(x, mode);
              fail("Expected IllegalArgumentException");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    // If it cannot find a module path, it returns an empty string.
    // It is tolerant of unrelated problems in the go.mod file.
    func ModulePath(mod []byte) string {
    	for len(mod) > 0 {
    		line := mod
    		mod = nil
    		if i := bytes.IndexByte(line, '\n'); i >= 0 {
    			line, mod = line[:i], line[i+1:]
    		}
    		if i := bytes.Index(line, slashSlash); i >= 0 {
    			line = line[:i]
    		}
    		line = bytes.TrimSpace(line)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/LongMathTest.java

        long x = 1000000000000L;
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertEquals(12, LongMath.log10(x, mode));
        }
      }
    
      @GwtIncompatible // TODO
      public void testSqrtNegativeAlwaysThrows() {
        for (long x : NEGATIVE_LONG_CANDIDATES) {
          for (RoundingMode mode : ALL_ROUNDING_MODES) {
            try {
              LongMath.sqrt(x, mode);
              fail("Expected IllegalArgumentException");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  10. src/runtime/stkframe.go

    	// stackObjectRecord.gcdata() will work correctly with it.
    	ptr := uintptr(unsafe.Pointer(&methodValueCallFrameObjs[0]))
    	var mod *moduledata
    	for datap := &firstmoduledata; datap != nil; datap = datap.next {
    		if datap.gofunc <= ptr && ptr < datap.end {
    			mod = datap
    			break
    		}
    	}
    	if mod == nil {
    		throw("methodValueCallFrameObjs is not in a module")
    	}
    	methodValueCallFrameObjs[0] = stackObjectRecord{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top