Compare commits

...

1 Commits

Author SHA1 Message Date
  Ludovic 'Archivist' Lagouardette 0d7d77f1fd Some more math fixes and dependency fixes 3 years ago
3 changed files with 4 additions and 4 deletions
Split View
  1. +1
    -1
      include/gp/allocator/buddy.hpp
  2. +1
    -1
      include/gp/math/fp_math.hpp
  3. +2
    -2
      include/gp/math/integer_math.hpp

+ 1
- 1
include/gp/allocator/buddy.hpp View File

@ -2,7 +2,7 @@
#include "gp_config.hpp"
#include "gp/buffer.hpp"
#include "gp/array.hpp"
#include "gp/math.hpp"
#include "gp/math/integer_math.hpp"
#include <type_traits>
#include <gp/algorithm/tmp_manip.hpp>
#include <gp/algorithm/modifiers.hpp>

+ 1
- 1
include/gp/math/fp_math.hpp View File

@ -13,7 +13,7 @@ namespace gp{
constexpr float pi<float> = 3.1415926535897932384626433832795028841971693993751058209749445923078164062;
template<>
constexpr double pi<double> = 3.1415926535897932384626433832795028841971693993751058209749445923078164062;
constexpr double pi<double> = 3.1415926535897932384626433832795028841971693993751058209749445923078164062n">L;
template<typename T>
T abs(T);

+ 2
- 2
include/gp/math/integer_math.hpp View File

@ -70,7 +70,7 @@ namespace gp {
return l + (((1 << l) ^ v) != 0);
}
static_assert(msb<uint32_t>(7) == 3, "bad log2");
static_assert(msb<uint32_t>(8) == 3, "bad log2");
static_assert(msb<uint32_t>(7) == 3, "bad msb");
static_assert(msb<uint32_t>(8) == 3, "bad msb");
}
}

Loading…
Cancel
Save