Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestMul64to128 (0.43 sec)

  1. lib/fips140/v1.0.0-c2097c7c.zip

    new(Element) t3 := new(Element) t2.Multiply(&x, &z) t3.Multiply(&y, &z) t2.Add(t2, t3) return t1.Equal(t2) == 1 && isInBounds(t1) && isInBounds(t2) } if err := quick.Check(multiplyDistributesO, quickCheckConfig(1024)); err != nil { t.Error(err) } } func TestMul64to128(t *testing.T) { a := uint64(5) b := uint64(5) r := mul64(a, b) if r.lo != 0x19 || r.hi != 0 { t.Errorf("lo-range wide mult failed, got %d + %d*(2**64)", r.lo, r.hi) } a = uint64(18014398509481983) // 2^54 - 1 b = uint64(18014398509481983) // 2^54...
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Sep 25 19:53:19 UTC 2025
    - 642.7K bytes
    - Viewed (0)
  2. lib/fips140/v1.1.0-rc1.zip

    new(Element) t3 := new(Element) t2.Multiply(&x, &z) t3.Multiply(&y, &z) t2.Add(t2, t3) return t1.Equal(t2) == 1 && isInBounds(t1) && isInBounds(t2) } if err := quick.Check(multiplyDistributesO, quickCheckConfig(1024)); err != nil { t.Error(err) } } func TestMul64to128(t *testing.T) { a := uint64(5) b := uint64(5) r := mul(a, b) if r.lo != 0x19 || r.hi != 0 { t.Errorf("lo-range wide mult failed, got %d + %d*(2**64)", r.lo, r.hi) } a = uint64(18014398509481983) // 2^54 - 1 b = uint64(18014398509481983) // 2^54...
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Dec 11 16:27:41 UTC 2025
    - 663K bytes
    - Viewed (0)
Back to top