- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 80 for arithmetic (0.2 sec)
-
src/strconv/ftoaryu.go
d.dp -= q } // mulByLog2Log10 returns math.Floor(x * log(2)/log(10)) for an integer x in // the range -1600 <= x && x <= +1600. // // The range restriction lets us work in faster integer arithmetic instead of // slower floating point arithmetic. Correctness is verified by unit tests. func mulByLog2Log10(x int) int { // log(2)/log(10) ≈ 0.30102999566 ≈ 78913 / 2^18 return (x * 78913) >> 18 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 00:28:56 UTC 2022 - 15.7K bytes - Viewed (0) -
guava/src/com/google/common/math/LongMath.java
return (int) x == x; } /** * Returns the arithmetic mean of {@code x} and {@code y}, rounded toward negative infinity. This * method is resilient to overflow. * * @since 14.0 */ public static long mean(long x, long y) { // Efficient method for computing the arithmetic mean. // The alternative (x + y) / 2 fails for large values.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 44.6K bytes - Viewed (0) -
android/guava/src/com/google/common/math/LongMath.java
return (int) x == x; } /** * Returns the arithmetic mean of {@code x} and {@code y}, rounded toward negative infinity. This * method is resilient to overflow. * * @since 14.0 */ public static long mean(long x, long y) { // Efficient method for computing the arithmetic mean. // The alternative (x + y) / 2 fails for large values.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 44.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.h
} virtual ~UniformQuantizedValueConverter() = default; private: // An optimized implementation to quantize f32 to i8/u8 with C++ native // arithmetic. virtual APInt quantizeF32ToInt8(const APFloat& expressed_value) const { assert(&expressed_value.getSemantics() == &APFloat::IEEEsingle()); assert(storage_bit_width_ == 8);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/passes.h
// tables to TensorFlow Lite hash tables. std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeHashTablesPass(); // Creates get arithmetic count pass, which will calculate the arithmetic count // for each ops. std::unique_ptr<OperationPass<func::FuncOp>> CreateGetArithmeticCountPass(); // Creates unfold large constant pass, which will replace large splat constant
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 07 21:29:34 UTC 2024 - 10.9K bytes - Viewed (0) -
src/internal/abi/type.go
Bytes *byte } // DataChecked does pointer arithmetic on n's Bytes, and that arithmetic is asserted to // be safe for the reason in whySafe (which can appear in a backtrace, etc.) func (n Name) DataChecked(off int, whySafe string) *byte { return (*byte)(addChecked(unsafe.Pointer(n.Bytes), uintptr(off), whySafe)) } // Data does pointer arithmetic on n's Bytes, and that arithmetic is asserted to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 21.8K bytes - Viewed (0) -
android/guava/src/com/google/common/math/BigIntegerMath.java
* * a) every iteration (except potentially the first) has guess >= floor(sqrt(x)). This is * because guess' is the arithmetic mean of guess and x / guess, sqrt(x) is the geometric mean, * and the arithmetic mean is always higher than the geometric mean. * * b) this iteration converges to floor(sqrt(x)). In fact, the number of correct digits doubles
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 18.9K bytes - Viewed (0) -
guava/src/com/google/common/math/BigIntegerMath.java
* * a) every iteration (except potentially the first) has guess >= floor(sqrt(x)). This is * because guess' is the arithmetic mean of guess and x / guess, sqrt(x) is the geometric mean, * and the arithmetic mean is always higher than the geometric mean. * * b) this iteration converges to floor(sqrt(x)). In fact, the number of correct digits doubles
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 18.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/IntMathTest.java
/** Helper method that asserts the arithmetic mean of x and y is equal to the expectedMean. */ private static void assertMean(int expectedMean, int x, int y) { assertEquals( "The expectedMean should be the same as computeMeanSafely", expectedMean, computeMeanSafely(x, y)); assertMean(x, y); } /** * Helper method that asserts the arithmetic mean of x and y is equal to the result of
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 24.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/RISCV64Ops.go
{name: "SRA", argLength: 2, reg: gp21, asm: "SRA"}, // arg0 >> (aux1 & 63), arithmetic right shift {name: "SRAW", argLength: 2, reg: gp21, asm: "SRAW"}, // arg0 >> (aux1 & 31), arithmetic right shift of 32 bit value, sign extended to 64 bits {name: "SRL", argLength: 2, reg: gp21, asm: "SRL"}, // arg0 >> (aux1 & 63), logical right shift
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 14:57:07 UTC 2024 - 30.7K bytes - Viewed (0)