mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Clang format
This commit is contained in:
parent
45efa69189
commit
68360aa522
@ -34,7 +34,6 @@
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
ALWAYS_INLINE inline constexpr T pow10(size_t x)
|
ALWAYS_INLINE inline constexpr T pow10(size_t x)
|
||||||
{
|
{
|
||||||
@ -117,7 +116,6 @@ QuotientAndRemainder<N> inline split(UnsignedOfSize<N> value)
|
|||||||
return {quotient, remainder};
|
return {quotient, remainder};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ALWAYS_INLINE inline char * outDigit(char * p, uint8_t value)
|
ALWAYS_INLINE inline char * outDigit(char * p, uint8_t value)
|
||||||
{
|
{
|
||||||
*p = '0' + value;
|
*p = '0' + value;
|
||||||
@ -147,7 +145,6 @@ ALWAYS_INLINE inline char * outTwoDigits(char * p, uint8_t value)
|
|||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
namespace convert
|
namespace convert
|
||||||
{
|
{
|
||||||
template <typename UInt, size_t N = sizeof(UInt)>
|
template <typename UInt, size_t N = sizeof(UInt)>
|
||||||
@ -296,7 +293,6 @@ ALWAYS_INLINE inline char * itoa(I i, char * p)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const uint64_t max_multiple_of_hundred_that_fits_in_64_bits = 1'00'00'00'00'00'00'00'00'00ull;
|
const uint64_t max_multiple_of_hundred_that_fits_in_64_bits = 1'00'00'00'00'00'00'00'00'00ull;
|
||||||
const int max_multiple_of_hundred_blocks = 9;
|
const int max_multiple_of_hundred_blocks = 9;
|
||||||
static_assert(max_multiple_of_hundred_that_fits_in_64_bits % 100 == 0);
|
static_assert(max_multiple_of_hundred_that_fits_in_64_bits % 100 == 0);
|
||||||
@ -411,7 +407,6 @@ ALWAYS_INLINE inline char * writeUIntText(UInt256 _x, char * p)
|
|||||||
return highest_part_print;
|
return highest_part_print;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ALWAYS_INLINE inline char * writeLeadingMinus(char * pos)
|
ALWAYS_INLINE inline char * writeLeadingMinus(char * pos)
|
||||||
{
|
{
|
||||||
*pos = '-';
|
*pos = '-';
|
||||||
@ -451,7 +446,6 @@ ALWAYS_INLINE inline char * writeSIntText(T x, char * pos)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char * itoa(UInt8 i, char * p)
|
char * itoa(UInt8 i, char * p)
|
||||||
{
|
{
|
||||||
return convert::itoa(uint8_t(i), p);
|
return convert::itoa(uint8_t(i), p);
|
||||||
|
Loading…
Reference in New Issue
Block a user