- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 180 for Odd (0.09 sec)
-
src/math/big/sqrt.go
// the MantExp call. prec := z.prec b := x.MantExp(z) z.prec = prec // Compute √(z·2**b) as // √( z)·2**(½b) if b is even // √(2z)·2**(⌊½b⌋) if b > 0 is odd // √(½z)·2**(⌈½b⌉) if b < 0 is odd switch b % 2 { case 0: // nothing to do case 1: z.exp++ case -1: z.exp-- } // 0.25 <= z < 2.0 // Solving 1/x² - z = 0 avoids Quo calls and is faster, especially
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 2.8K bytes - Viewed (0) -
test/fixedbugs/issue7419.go
// run // Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 7419: odd behavior for float constants underflowing to 0 package main import ( "os" ) var x = 1e-779137 var y = 1e-779138 func main() { if x != 0 { os.Exit(1) } if y != 0 { os.Exit(2) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 19 04:48:00 UTC 2014 - 378 bytes - Viewed (0) -
pkg/apis/discovery/v1beta1/conversion.go
out.Zone = &zone delete(out.DeprecatedTopology, corev1.LabelTopologyZone) } // Remove hostname from the topology map ONLY IF it is the same value as // nodeName. This preserves the (rather odd) ability to have different // values for topology[hostname] and nodename in v1beta1, without showing // duplicate values in v1. if node, ok := in.Topology[corev1.LabelHostname]; ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 05 20:02:41 UTC 2021 - 3K bytes - Viewed (0) -
src/cmd/asm/internal/arch/riscv64.go
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file encapsulates some of the odd characteristics of the RISCV64 // instruction set, to minimize its interaction with the core of the // assembler. package arch import ( "cmd/internal/obj" "cmd/internal/obj/riscv" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Mar 15 08:13:28 UTC 2020 - 943 bytes - Viewed (0) -
src/crypto/internal/edwards25519/scalarmult.go
func (v *Point) ScalarBaseMult(x *Scalar) *Point { basepointTable := basepointTable() // Write x = sum(x_i * 16^i) so x*B = sum( B*x_i*16^i ) // as described in the Ed25519 paper // // Group even and odd coefficients // x*B = x_0*16^0*B + x_2*16^2*B + ... + x_62*16^62*B // + x_1*16^1*B + x_3*16^3*B + ... + x_63*16^63*B // x*B = x_0*16^0*B + x_2*16^2*B + ... + x_62*16^62*B
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 05 21:53:10 UTC 2022 - 6.3K bytes - Viewed (0) -
test/fixedbugs/issue19555.go
func NewNodeLink(role LinkRole) *NodeLink { var nextConnId uint32 switch role &^ linkFlagsMask { case LinkServer: nextConnId = 0 // all initiated by us connId will be even case LinkClient: nextConnId = 1 // ----//---- odd default: panic("invalid conn role") } _ = nextConnId return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 15 21:44:08 UTC 2017 - 836 bytes - Viewed (0) -
test/fixedbugs/issue67160.go
// unaligned loads. package main // T has a big field that wants to be compared with larger loads/stores. // T is "special" because of the unnamed field, so it needs a generated equality function. // T is an odd number of bytes in size and has alignment 1. type T struct { src [8]byte _ byte } // U contains 8 copies of T, each at a different %8 alignment. type U [8]T //go:noinline func f(x, y *U) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 15:34:04 UTC 2024 - 767 bytes - Viewed (0) -
src/math/jn.go
return J0(x) } if x == 0 { return 0 } if n < 0 { n, x = -n, -x } if n == 1 { return J1(x) } sign := false if x < 0 { x = -x if n&1 == 1 { sign = true // odd n and negative x } } var b float64 if float64(n) <= x { // Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) if x >= Two302 { // x > 2**302 // (x >> n**2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.h
Value &padding, int num_dims = 4); // Given value that is in 8bit type, but holds 4bit data in unpacked format, // pack to nibble format along pack_dim. // If the pack_dim size is odd, add 1-size 0 padding and then pack. Value PackOperand(OpBuilder &builder, Location loc, Value value, int pack_dim); } // namespace mlir::quant
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 2K bytes - Viewed (0) -
src/slices/example_test.go
return n < 0 }) fmt.Println("Has a negative:", hasNegative) hasOdd := slices.ContainsFunc(numbers, func(n int) bool { return n%2 != 0 }) fmt.Println("Has an odd number:", hasOdd) // Output: // Has a negative: true // Has an odd number: false } func ExampleDelete() { letters := []string{"a", "b", "c", "d", "e"} letters = slices.Delete(letters, 1, 4) fmt.Println(letters) // Output:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 8.1K bytes - Viewed (0)