Lines Matching refs:digit
111 u64 digit; in vli_num_bits() local
117 digit = vli[num_digits - 1]; in vli_num_bits()
118 for (i = 0; digit; i++) in vli_num_bits()
119 digit >>= 1; in vli_num_bits()
736 const u8 *digit = bytes + 8 * (NUM_ECC_DIGITS - 1 - i); in ecc_bytes2native() local
739 ((u64) digit[0] << 0) | in ecc_bytes2native()
740 ((u64) digit[1] << 8) | in ecc_bytes2native()
741 ((u64) digit[2] << 16) | in ecc_bytes2native()
742 ((u64) digit[3] << 24) | in ecc_bytes2native()
743 ((u64) digit[4] << 32) | in ecc_bytes2native()
744 ((u64) digit[5] << 40) | in ecc_bytes2native()
745 ((u64) digit[6] << 48) | in ecc_bytes2native()
746 ((u64) digit[7] << 56); in ecc_bytes2native()
756 u8 *digit = bytes + 8 * (NUM_ECC_DIGITS - 1 - i); in ecc_native2bytes() local
758 digit[0] = native[NUM_ECC_DIGITS - 1 - i] >> 0; in ecc_native2bytes()
759 digit[1] = native[NUM_ECC_DIGITS - 1 - i] >> 8; in ecc_native2bytes()
760 digit[2] = native[NUM_ECC_DIGITS - 1 - i] >> 16; in ecc_native2bytes()
761 digit[3] = native[NUM_ECC_DIGITS - 1 - i] >> 24; in ecc_native2bytes()
762 digit[4] = native[NUM_ECC_DIGITS - 1 - i] >> 32; in ecc_native2bytes()
763 digit[5] = native[NUM_ECC_DIGITS - 1 - i] >> 40; in ecc_native2bytes()
764 digit[6] = native[NUM_ECC_DIGITS - 1 - i] >> 48; in ecc_native2bytes()
765 digit[7] = native[NUM_ECC_DIGITS - 1 - i] >> 56; in ecc_native2bytes()