Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 69 for BeUint64 (0.13 sec)

  1. 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)
  2. 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)
  3. src/cmd/compile/internal/ssa/softfloat.go

    					v.Op = OpCopy
    					v.Type = f.Config.Types.UInt64
    				}
    				newInt64 = newInt64 || v.Type.Size() == 8
    			} else if (v.Op == OpStore || v.Op == OpZero || v.Op == OpMove) && v.Aux.(*types.Type).IsFloat() {
    				switch size := v.Aux.(*types.Type).Size(); size {
    				case 4:
    					v.Aux = f.Config.Types.UInt32
    				case 8:
    					v.Aux = f.Config.Types.UInt64
    					newInt64 = true
    				default:
    					v.Fatalf("bad float type with size %d", size)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 16:14:24 UTC 2021
    - 2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/math/big/example_rat_test.go

    //
    // i.e., for the nth term, use
    //
    //	   1          if   n mod 3 != 1
    //	(n-1)/3 * 2   if   n mod 3 == 1
    func recur(n, lim int64) *big.Rat {
    	term := new(big.Rat)
    	if n%3 != 1 {
    		term.SetInt64(1)
    	} else {
    		term.SetInt64((n - 1) / 3 * 2)
    	}
    
    	if n > lim {
    		return term
    	}
    
    	// Directly initialize frac as the fractional
    	// inverse of the result of recur.
    	frac := new(big.Rat).Inv(recur(n+1, lim))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/math/big/rat_test.go

    	}
    	var r = new(Rat)
    	for i, want := range testCases {
    		r.SetInt64(want)
    		if !r.IsInt() {
    			t.Errorf("#%d: Rat.SetInt64(%d) is not an integer", i, want)
    		}
    		num := r.Num()
    		if !num.IsInt64() {
    			t.Errorf("#%d: Rat.SetInt64(%d) numerator is not an int64", i, want)
    		}
    		got := num.Int64()
    		if got != want {
    			t.Errorf("#%d: Rat.SetInt64(%d) = %d, but expected %d", i, want, got, want)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 07 00:15:59 UTC 2022
    - 18.9K bytes
    - Viewed (0)
  10. 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)
Back to top