Reduce branching in write_padded

This commit is contained in:
Victor Zverovich
2020-04-29 18:33:14 -07:00
parent 9ac1eebd47
commit 3e69847616
2 changed files with 8 additions and 13 deletions

View File

@@ -323,6 +323,8 @@ const char basic_data<T>::background_color[] = "\x1b[48;2;";
template <typename T> const char basic_data<T>::reset_color[] = "\x1b[0m";
template <typename T> const wchar_t basic_data<T>::wreset_color[] = L"\x1b[0m";
template <typename T> const char basic_data<T>::signs[] = {0, '-', '+', ' '};
template <typename T>
const char basic_data<T>::padding_shifts[] = {31, 31, 0, 1, 0};
template <typename T> struct bits {
static FMT_CONSTEXPR_DECL const int value =