Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCompress (1.03 sec)

  1. lib/fips140/v1.0.0.zip

    direct way to round a Rat.) rounded, err := strconv.ParseInt(precise.FloatString(0), 10, 64) if err != nil { panic(err) } // If we rounded up, `rounded` may be equal to 2ᵈ, so we perform a final reduction. return uint16(rounded % (1 << d)) } func TestCompress(t *testing.T) { for d := 1; d < 12; d++ { for n := 0; n < q; n++ { expected := CompressRat(fieldElement(n), uint8(d)) result := compress(fieldElement(n), uint8(d)) if result != expected { t.Errorf("compress(%d, %d): got %d, expected %d", n, d,...
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Jan 29 15:10:35 UTC 2025
    - 635K bytes
    - Viewed (0)
Back to top