refactor utility function name

This commit is contained in:
2026-02-03 23:03:59 +01:00
parent e08cbb0fa9
commit c366c79d4c
3 changed files with 6 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ internal class BigInt private constructor(
get() = BigInt(intArrayOf(0))
fun from(bytes: ByteArray): BigInt {
val words = IntArray(bytes.size.divCeil(4))
val words = IntArray(bytes.size.ceilDiv(4))
for (i in bytes.indices) {
val (wi, bi) = (bytes.lastIndex - i).divRem(4)
words[wi] = words[wi] or ((bytes[i].toInt() and 0xFF) shl (bi * 8))