- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for divRoundUp (0.15 sec)
-
lib/fips140/v1.0.0-c2097c7c.zip
package pbkdf2 import ( "crypto/internal/fips140" "crypto/internal/fips140/hmac" "errors" ) // divRoundUp divides x+y-1 by y, rounding up if the result is not whole. // This function casts x and y to int64 in order to avoid cases where // x+y would overflow int on systems where int is an int32. The result // is an int, which is safe as (x+y-1)/y should always fit, regardless // of the integer size. func divRoundUp(x, y int) int { return int((int64(x) + int64(y) - 1) / int64(y)) } func Key[Hash fips140.Hash](h...
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Sep 25 19:53:19 UTC 2025 - 642.7K bytes - Viewed (0) -
lib/fips140/v1.1.0-rc1.zip
pbkdf2 import ( "crypto/internal/fips140" "crypto/internal/fips140/hmac" "errors" "hash" ) // divRoundUp divides x+y-1 by y, rounding up if the result is not whole. // This function casts x and y to int64 in order to avoid cases where // x+y would overflow int on systems where int is an int32. The result // is an int, which is safe as (x+y-1)/y should always fit, regardless // of the integer size. func divRoundUp(x, y int) int { return int((int64(x) + int64(y) - 1) / int64(y)) } func Key[Hash hash.Hash](h...
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Dec 11 16:27:41 UTC 2025 - 663K bytes - Viewed (0)