Ver a proveniência

Some more math fixes and dependency fixes

devel
Ludovic 'Archivist' Lagouardette há 3 anos
ascendente
cometimento
0d7d77f1fd
3 ficheiros alterados com 4 adições e 4 eliminações
  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 Ver ficheiro

@ -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 Ver ficheiro

@ -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 Ver ficheiro

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

Carregando…
Cancelar
Guardar