Skip to content
Permalink
Browse files

make fp_precision_limit inline

  • Loading branch information
dlevin256 committed Dec 4, 2019
1 parent 0fccc01 commit 05da404dd3cb9bf4c865510d13e842b14980f54b
Showing with 3 additions and 2 deletions.
  1. +1 −0 capi/capi.cpp
  2. +2 −2 include/kfr/math/impl/round.hpp
@@ -23,6 +23,7 @@
disclosing the source code of your own applications.
See https://www.kfrlib.com for details.
*/
#define KFR_NO_C_COMPLEX_TYPES 1

#include <kfr/capi.h>
#include <kfr/dft.hpp>
@@ -133,9 +133,9 @@ KFR_HANDLE_ALL_SIZES_1_IF(fract, is_f_class<T>)
// fallback

template <typename T>
constexpr T fp_precision_limit = 4503599627370496.0;
constexpr inline T fp_precision_limit = 4503599627370496.0;
template <>
constexpr f32 fp_precision_limit<f32> = 16777216.0f;
constexpr inline f32 fp_precision_limit<f32> = 16777216.0f;

template <size_t N>
KFR_INTRINSIC vec<f32, N> floor(const vec<f32, N>& x)

0 comments on commit 05da404

Please sign in to comment.
You can’t perform that action at this time.