- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 50 for copysignSC (0.22 sec)
-
test/codegen/math.go
// riscv64:"FSGNJD" // arm64:"ORR", -"AND" sink64[1] = math.Copysign(c, -1) // Like math.Copysign(c, -1), but with integer operations. Useful // for platforms that have a copysign opcode to see if it's detected. // s390x:"LNDFR\t",-"MOVD\t" (no integer load/store) sink64[2] = math.Float64frombits(math.Float64bits(a) | 1<<63) // amd64:"ANDQ","ORQ" // s390x:"CPSDR\t",-"MOVD\t" (no integer load/store)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 15:24:29 UTC 2024 - 6.2K bytes - Viewed (0) -
src/runtime/softfloat64_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 4K bytes - Viewed (0) -
src/runtime/float.go
// Special cases are: // // abs(±Inf) = +Inf // abs(NaN) = NaN func abs(x float64) float64 { const sign = 1 << 63 return float64frombits(float64bits(x) &^ sign) } // copysign returns a value with the magnitude // of x and the sign of y. func copysign(x, y float64) float64 { const sign = 1 << 63 return float64frombits(float64bits(x)&^sign | float64bits(y)&sign) } // float64bits returns the IEEE 754 binary representation of f.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 02:39:39 UTC 2022 - 1.4K bytes - Viewed (0) -
src/math/nextafter.go
func Nextafter32(x, y float32) (r float32) { switch { case IsNaN(float64(x)) || IsNaN(float64(y)): // special case r = float32(NaN()) case x == y: r = x case x == 0: r = float32(Copysign(float64(Float32frombits(1)), float64(y))) case (y > x) == (x > 0): r = Float32frombits(Float32bits(x) + 1) default: r = Float32frombits(Float32bits(x) - 1) } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 1.2K bytes - Viewed (0) -
.idea/dictionaries/svyatoslav_kuzmich.xml
<component name="ProjectDictionaryState"> <dictionary name="svyatoslav.kuzmich"> <words> <w>anyfunc</w> <w>copysign</w> <w>eqref</w> <w>exnref</w> <w>externref</w> <w>funcref</w> <w>jetbrains</w> <w>kotlinx</w> <w>ktor</w> <w>optref</w> <w>popcnt</w> <w>rotl</w> <w>rotr</w> <w>simd</w> <w>sqrt</w> <w>testsuite</w>
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Oct 12 05:42:01 UTC 2021 - 594 bytes - Viewed (0) -
test/fixedbugs/issue6899.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 31 17:36:45 UTC 2018 - 244 bytes - Viewed (0) -
src/math/ldexp.go
case IsInf(frac, 0) || IsNaN(frac): return frac } frac, e := normalize(frac) exp += e x := Float64bits(frac) exp += int(x>>shift)&mask - bias if exp < -1075 { return Copysign(0, frac) // underflow } if exp > 1023 { // overflow if frac < 0 { return Inf(-1) } return Inf(1) } var m float64 = 1 if exp < -1022 { // denormal exp += 53
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 1.1K bytes - Viewed (0) -
src/runtime/minmax_test.go
// license that can be found in the LICENSE file. package runtime_test import ( "math" "strings" "testing" "unsafe" ) var ( zero = math.Copysign(0, +1) negZero = math.Copysign(0, -1) inf = math.Inf(+1) negInf = math.Inf(-1) nan = math.NaN() ) var tests = []struct{ min, max float64 }{ {1, 2}, {-2, 1}, {negZero, zero}, {zero, inf},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 26 01:41:50 UTC 2024 - 3.6K bytes - Viewed (0) -
android/guava/src/com/google/common/math/DoubleMath.java
* @since 13.0 */ public static boolean fuzzyEquals(double a, double b, double tolerance) { MathPreconditions.checkNonNegative("tolerance", tolerance); return Math.copySign(a - b, 1.0) <= tolerance // copySign(x, 1.0) is a branch-free version of abs(x), but with different NaN semantics || (a == b) // needed to ensure that infinities equal themselves || (Double.isNaN(a) && Double.isNaN(b)); }
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/DoubleMath.java
* @since 13.0 */ public static boolean fuzzyEquals(double a, double b, double tolerance) { MathPreconditions.checkNonNegative("tolerance", tolerance); return Math.copySign(a - b, 1.0) <= tolerance // copySign(x, 1.0) is a branch-free version of abs(x), but with different NaN semantics || (a == b) // needed to ensure that infinities equal themselves || (Double.isNaN(a) && Double.isNaN(b)); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 18.9K bytes - Viewed (0)