- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 62 for BeUint64 (0.35 sec)
-
src/math/big/nat.go
i++ } return } // bigEndianWord returns the contents of buf interpreted as a big-endian encoded Word value. func bigEndianWord(buf []byte) Word { if _W == 64 { return Word(byteorder.BeUint64(buf)) } return Word(byteorder.BeUint32(buf)) } // setBytes interprets buf as the bytes of a big-endian unsigned // integer, sets z to that value, and returns z.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:31:58 UTC 2024 - 31.7K bytes - Viewed (0) -
misc/wasm/wasm_exec.js
} const loadSlice = (addr) => { const array = getInt64(addr + 0); const len = getInt64(addr + 8); return new Uint8Array(this._inst.exports.mem.buffer, array, len); } const loadSliceOfValues = (addr) => { const array = getInt64(addr + 0); const len = getInt64(addr + 8); const a = new Array(len); for (let i = 0; i < len; i++) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 17:47:47 UTC 2023 - 16.3K bytes - Viewed (0) -
misc/cgo/gmp/pi.go
return tmp1.Int64() } func nextTerm(k int64) { y2 := k*2 + 1 accum.Add(accum, tmp1.Lsh(numer, 1)) accum.Mul(accum, tmp1.SetInt64(y2)) numer.Mul(numer, tmp1.SetInt64(k)) denom.Mul(denom, tmp1.SetInt64(y2)) } func eliminateDigit(d int64) { accum.Sub(accum, tmp1.Mul(denom, tmp1.SetInt64(d))) accum.Mul(accum, ten) numer.Mul(numer, ten) } func main() { i := 0 k := int64(0) for { d := int64(-1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 10 22:32:35 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/gen/cmpConstGen.go
case "uint8": max = max.SetUint64(maxU8) case "int64": min = min.SetInt64(minI64) max = max.SetInt64(maxI64) case "int32": min = min.SetInt64(minI32) max = max.SetInt64(maxI32) case "int16": min = min.SetInt64(minI16) max = max.SetInt64(maxI16) case "int8": min = min.SetInt64(minI8) max = max.SetInt64(maxI8) default: panic("unexpected type") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 6.4K bytes - Viewed (0) -
src/hash/maphash/maphash_purego.go
} func rthashString(s string, state uint64) uint64 { return rthash([]byte(s), state) } func randUint64() uint64 { buf := make([]byte, 8) _, _ = rand.Read(buf) return byteorder.LeUint64(buf) } // This is a port of wyhash implementation in runtime/hash64.go, // without using unsafe for purego. const ( m1 = 0xa0761d6478bd642f m2 = 0xe7037ed1a0b428db m3 = 0x8ebc6af09c88c6e3
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 12 05:36:29 UTC 2024 - 1.8K bytes - Viewed (0) -
src/math/big/floatexample_test.go
package big_test import ( "fmt" "math" "math/big" ) func ExampleFloat_Add() { // Operate on numbers of different precision. var x, y, z big.Float x.SetInt64(1000) // x is automatically set to 64bit precision y.SetFloat64(2.718281828) // y is automatically set to 53bit precision z.SetPrec(32) z.Add(&x, &y)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 15:46:54 UTC 2024 - 4.1K bytes - Viewed (0) -
src/crypto/internal/edwards25519/field/fe.go
} // Bits 0:51 (bytes 0:8, bits 0:64, shift 0, mask 51). v.l0 = byteorder.LeUint64(x[0:8]) v.l0 &= maskLow51Bits // Bits 51:102 (bytes 6:14, bits 48:112, shift 3, mask 51). v.l1 = byteorder.LeUint64(x[6:14]) >> 3 v.l1 &= maskLow51Bits // Bits 102:153 (bytes 12:20, bits 96:160, shift 6, mask 51). v.l2 = byteorder.LeUint64(x[12:20]) >> 6 v.l2 &= maskLow51Bits
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 11.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/int64.go
// // Deprecated: use generic Set instead. // new ways: // s1 := Set[int64]{} // s2 := New[int64]() type Int64 map[int64]Empty // NewInt64 creates a Int64 from a list of values. func NewInt64(items ...int64) Int64 { return Int64(New[int64](items...)) } // Int64KeySet creates a Int64 from a keys of a map[int64](? extends interface{}).
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 3.9K bytes - Viewed (0) -
src/math/big/int_test.go
func euclidExtGCD(a, b *Int) (g, x, y *Int) { A := new(Int).Set(a) B := new(Int).Set(b) // A = Ua*a + Va*b // B = Ub*a + Vb*b Ua := new(Int).SetInt64(1) Va := new(Int) Ub := new(Int) Vb := new(Int).SetInt64(1) q := new(Int) temp := new(Int) r := new(Int) for len(B.abs) > 0 { q, r = q.QuoRem(A, B, r) A, B, r = B, r, A // Ua, Ub = Ub, Ua-q*Ub
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0) -
src/math/big/float_test.go
} } func TestIssue6866(t *testing.T) { for _, prec := range precList { two := new(Float).SetPrec(prec).SetInt64(2) one := new(Float).SetPrec(prec).SetInt64(1) three := new(Float).SetPrec(prec).SetInt64(3) msix := new(Float).SetPrec(prec).SetInt64(-6) psix := new(Float).SetPrec(prec).SetInt64(+6) p := new(Float).SetPrec(prec) z1 := new(Float).SetPrec(prec) z2 := new(Float).SetPrec(prec)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 51.9K bytes - Viewed (0)