Lines Matching defs:limbs
52 """First number exceeding number of limbs needed for given input value."""
55 def bound_mpi_limbs(limbs: int, bits_in_limb: int) -> int:
56 """First number exceeding maximum of given number of limbs."""
57 bits = bits_in_limb * limbs
61 """Return the number of limbs required to store value."""
70 """ Return the appropriate ammount of limbs needed to store
74 def hex_digits_for_limb(limbs: int, bits_in_limb: int) -> int:
75 """ Return the hex digits need for a number of limbs. """
76 return 2 * ((limbs * bits_in_limb) // 8)
156 def limbs(self) -> int:
161 return hex_digits_for_limb(self.limbs, self.bits_in_limb)