Home
last modified time | relevance | path

Searched refs:shift_amount (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/llvm-project/libc/src/__support/
H A Dhigh_precision_decimal.h207 LIBC_INLINE void right_shift(uint32_t shift_amount) { in right_shift() argument
213 const uint64_t shift_mask = (uint64_t(1) << shift_amount) - 1; in right_shift()
217 while (accumulator >> shift_amount == 0) { in right_shift()
236 uint64_t write_digit = accumulator >> shift_amount; in right_shift()
247 uint64_t write_digit = accumulator >> shift_amount; in right_shift()
264 LIBC_INLINE void left_shift(uint32_t shift_amount) { in left_shift() argument
265 uint32_t new_digits = this->get_num_new_digits(shift_amount); in left_shift()
279 << shift_amount; in left_shift()
386 LIBC_INLINE void shift(int shift_amount) { in shift() argument
387 if (shift_amount == 0) { in shift()
[all …]
H A Dfloat_to_string.h191 const int shift_amount = in get_table_positive() local
193 if (shift_amount < 0) { in get_table_positive()
204 num = UInt<INT_SIZE>(1) << (shift_amount); in get_table_positive()
231 const int shift_amount = in get_table_positive_df() local
233 if (shift_amount < 0) { in get_table_positive_df()
253 num = mul_pow_2(num, shift_amount); in get_table_positive_df()
281 int shift_amount = CALC_SHIFT_CONST - exponent; in get_table_negative() local
289 if (shift_amount < 0) { in get_table_negative()
290 int block_shifts = (-shift_amount) / static_cast<int>(BLOCK_SIZE); in get_table_negative()
294 shift_amount = shift_amount + (block_shifts * BLOCK_SIZE); in get_table_negative()
[all …]
H A Dstr_to_float.h375 int32_t shift_amount = 0; variable
377 shift_amount = 60;
379 shift_amount = POWERS_OF_TWO[hpd.get_decimal_point()];
381 exp2 += shift_amount;
382 hpd.shift(-shift_amount);
388 int32_t shift_amount = 0; variable
391 shift_amount = 60;
393 shift_amount = POWERS_OF_TWO[-hpd.get_decimal_point()];
395 shift_amount = 1;
397 exp2 -= shift_amount;
[all …]
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DStringExtractor.cpp160 uint32_t shift_amount = 0; in GetHexMaxU32() local
174 result |= (static_cast<uint32_t>(nibble_hi) << (shift_amount + 4)); in GetHexMaxU32()
175 result |= (static_cast<uint32_t>(nibble_lo) << shift_amount); in GetHexMaxU32()
177 shift_amount += 8; in GetHexMaxU32()
179 result |= (static_cast<uint32_t>(nibble_hi) << shift_amount); in GetHexMaxU32()
181 shift_amount += 4; in GetHexMaxU32()
211 uint32_t shift_amount = 0; in GetHexMaxU64() local
225 result |= (static_cast<uint64_t>(nibble_hi) << (shift_amount + 4)); in GetHexMaxU64()
226 result |= (static_cast<uint64_t>(nibble_lo) << shift_amount); in GetHexMaxU64()
228 shift_amount in GetHexMaxU64()
[all...]
/freebsd/contrib/llvm-project/libc/src/__support/wchar/
H A Dcharacter_converter.cpp151 const size_t shift_amount = (state->bytes_stored - 1) * ENCODED_BITS_PER_UTF8; in pop_utf8() local
159 (state->partial >> shift_amount); in pop_utf8()
163 ((state->partial >> shift_amount) & MASK_ENCODED_BITS); in pop_utf8()
/freebsd/contrib/llvm-project/libc/src/__support/HashTable/generic/
H A Dbitmask_impl.inc31 size_t shift_amount = 8;
32 while (shift_amount < sizeof(bitmask_t) * 8) {
33 byte |= byte << shift_amount;
34 shift_amount <<= 1;