src/util/consts/lib.hpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "../alias/num/lib.hpp" | ||
| 4 | // clang-format off | ||
| 5 | namespace tifa_libs { | ||
| 6 | using std::numbers::pi_v; | ||
| 7 | template <std::floating_point FP> | ||
| 8 | inline FP eps_v = std::sqrt(std::numeric_limits<FP>::epsilon()); | ||
| 9 | template <std::floating_point FP> | ||
| 10 | 61 | CEXP void set_eps(FP v) NE { eps_v<FP> = v; } | |
| 11 | CEXP u32 TIME = ((__TIME__[0] & 15) << 20) | ((__TIME__[1] & 15) << 16) | ((__TIME__[3] & 15) << 12) | ((__TIME__[4] & 15) << 8) | ((__TIME__[6] & 15) << 4) | (__TIME__[7] & 15); | ||
| 12 | CEXP auto STR2U16 = [] { std::array<u32, 65536> table{}; table.fill(-1_u32); flt_ (u32, i, 48, 58) flt_ (u32, j, 48, 58) table[i << 8 | j] = (j & 15) * 10 + (i & 15); return table; }(); | ||
| 13 | |||
| 14 | 113798825 | inline const auto fn_0 = [](auto&&...) NE {}; | |
| 15 | inline const auto fn_is0 = [](auto x) NE { return x == 0; }; | ||
| 16 | } // namespace tifa_libs | ||
| 17 | // clang-format on | ||
| 18 |