v1
Brett 2023-03-14 17:30:22 -04:00
parent edfca12b18
commit a3643e4cca
1 changed files with 7 additions and 1 deletions

View File

@ -12,6 +12,12 @@
namespace blt { namespace blt {
constexpr float EPSILON = 0.0001f;
static inline constexpr bool f_equal(float v1, float v2) {
return v1 >= v2 - EPSILON && v1 <= v2 + EPSILON;
}
/** /**
* fast number integer * fast number integer
*/ */