Przeglądaj źródła

Some more math fixes and dependency fixes

devel
Ludovic 'Archivist' Lagouardette 4 lat temu
rodzic
commit
0d7d77f1fd
3 zmienionych plików z 4 dodań i 4 usunięć
  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 Wyświetl plik

@ -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 Wyświetl plik

@ -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 Wyświetl plik

@ -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");
}
}

Ładowanie…
Anuluj
Zapisz