mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
code review: FASTFLOAT_CONSTEXPR14
This commit is contained in:
parent
f5f64e46cd
commit
3e90425e3c
@ -217,8 +217,8 @@ struct value128 {
|
|||||||
constexpr value128() : low(0), high(0) {}
|
constexpr value128() : low(0), high(0) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Helper C++11 constexpr generic implementation of leading_zeroes */
|
/* Helper C++14 constexpr generic implementation of leading_zeroes */
|
||||||
fastfloat_really_inline constexpr
|
fastfloat_really_inline FASTFLOAT_CONSTEXPR14
|
||||||
int leading_zeroes_generic(uint64_t input_num, int last_bit = 0) {
|
int leading_zeroes_generic(uint64_t input_num, int last_bit = 0) {
|
||||||
if(input_num & uint64_t(0xffffffff00000000)) { input_num >>= 32; last_bit |= 32; }
|
if(input_num & uint64_t(0xffffffff00000000)) { input_num >>= 32; last_bit |= 32; }
|
||||||
if(input_num & uint64_t( 0xffff0000)) { input_num >>= 16; last_bit |= 16; }
|
if(input_num & uint64_t( 0xffff0000)) { input_num >>= 16; last_bit |= 16; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user