Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 85 for REM (0.02 sec)

  1. src/runtime/runtime_test.go

    			}
    			if ret64 != int64(tc.ret) {
    				t.Errorf("%d / %d got ret %d rem %d want ret %d rem %d", tc.num, tc.div, ret64, rem64, tc.ret, tc.rem)
    			}
    
    			var rem int32
    			ret := Timediv(tc.num, tc.div, &rem)
    			if ret != tc.ret || rem != tc.rem {
    				t.Errorf("timediv %d / %d got ret %d rem %d want ret %d rem %d", tc.num, tc.div, ret, rem, tc.ret, tc.rem)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. src/math/big/natdiv.go

    /*
    
    Multi-precision division. Here be dragons.
    
    Given u and v, where u is n+m digits, and v is n digits (with no leading zeros),
    the goal is to return quo, rem such that u = quo*v + rem, where 0 ≤ rem < v.
    That is, quo = ⌊u/v⌋ where ⌊x⌋ denotes the floor (truncation to integer) of x,
    and rem = u - quo·v.
    
    
    Long Division
    
    Division in a computer proceeds the same as long division in elementary school,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/KotlinGrammarTest.kt

            assertAnnotationConsumed("""@Deprecated(message="Use rem(other) instead",replaceWith=ReplaceWith("rem(other)"))""")
            assertAnnotationConsumed("""@Deprecated ( message = "Use rem(other) instead" , replaceWith = ReplaceWith ( "rem(other)" ) )""")
    
            assertAnnotationConsumed("""@Throws(IOException::class)""")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ppc64/ssa.go

    				offset = 32
    				rem -= 16
    			}
    		}
    
    		// Generate all the remaining load and store pairs, starting with
    		// as many 8 byte moves as possible, then 4, 2, 1.
    		for rem > 0 {
    			op, size := ppc64.AMOVB, int64(1)
    			switch {
    			case rem >= 8:
    				op, size = ppc64.AMOVD, 8
    			case rem >= 4:
    				op, size = ppc64.AMOVWZ, 4
    			case rem >= 2:
    				op, size = ppc64.AMOVH, 2
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  5. src/math/bits/bits.go

    // quo = (hi, lo)/y, rem = (hi, lo)%y with the dividend bits' upper
    // half in parameter hi and the lower half in parameter lo.
    // Div32 panics for y == 0 (division by zero) or y <= hi (quotient overflow).
    func Div32(hi, lo, y uint32) (quo, rem uint32) {
    	if y != 0 && y <= hi {
    		panic(overflowError)
    	}
    	z := uint64(hi)<<32 | uint64(lo)
    	quo, rem = uint32(z/uint64(y)), uint32(z%uint64(y))
    	return
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedLongs.java

         * that floor(floor(x)/i) == floor(x/i) for any real x and integer i != 0. The proof is not
         * quite trivial.
         */
        long quotient = ((dividend >>> 1) / divisor) << 1;
        long rem = dividend - quotient * divisor;
        return rem - (compare(rem, divisor) >= 0 ? divisor : 0);
      }
    
      /**
       * Returns the unsigned {@code long} value represented by the given decimal string.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/seat_seconds.go

    }
    
    // String converts to a string.
    // This is suitable for large as well as small values.
    func (ss SeatSeconds) String() string {
    	const div = SeatSeconds(ssScale)
    	quo := ss / div
    	rem := ss - quo*div
    	return fmt.Sprintf("%d.%08dss", quo, rem)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 09:16:46 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. src/crypto/dsa/dsa.go

    			if _, err := io.ReadFull(rand, pBytes); err != nil {
    				return err
    			}
    
    			pBytes[len(pBytes)-1] |= 1
    			pBytes[0] |= 0x80
    
    			p.SetBytes(pBytes)
    			rem.Mod(p, q)
    			rem.Sub(rem, one)
    			p.Sub(p, rem)
    			if p.BitLen() < L {
    				continue
    			}
    
    			if !p.ProbablyPrime(numMRTests) {
    				continue
    			}
    
    			params.P = p
    			params.Q = q
    			break GeneratePrimes
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  9. src/go/token/token.go

    	INT    // 12345
    	FLOAT  // 123.45
    	IMAG   // 123.45i
    	CHAR   // 'a'
    	STRING // "abc"
    	literal_end
    
    	operator_beg
    	// Operators and delimiters
    	ADD // +
    	SUB // -
    	MUL // *
    	QUO // /
    	REM // %
    
    	AND     // &
    	OR      // |
    	XOR     // ^
    	SHL     // <<
    	SHR     // >>
    	AND_NOT // &^
    
    	ADD_ASSIGN // +=
    	SUB_ASSIGN // -=
    	MUL_ASSIGN // *=
    	QUO_ASSIGN // /=
    	REM_ASSIGN // %=
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  10. src/hash/crc32/gen_const_ppc64le.go

    		if (b & uint64(1)) == 1 {
    			ref |= (1 << (uint64(nr-1) - bit))
    		}
    		b = (b >> 1)
    	}
    	return ref
    }
    
    func get_remainder(poly uint64, deg uint, n uint) uint64 {
    
    	rem, _ := xnmodp(n, poly, deg)
    	return rem
    }
    
    func get_quotient(poly uint64, bits, n uint) uint64 {
    
    	_, div := xnmodp(n, poly, bits)
    	return div
    }
    
    // xnmodp returns two values, p and div:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 20:44:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top