- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestCompress (0.07 sec)
-
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)