update makefile

lean
Avril 4 years ago
parent acd07b6346
commit 5c4b6180d5
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -9,7 +9,8 @@ PROJECT=shuffle3
COMMON_FLAGS = -Wall -pedantic $(addprefix -I,$(INCLUDE)) -fno-strict-aliasing COMMON_FLAGS = -Wall -pedantic $(addprefix -I,$(INCLUDE)) -fno-strict-aliasing
OPT_FLAGS?= -march=native -fgraphite -fopenmp -floop-parallelize-all -ftree-parallelize-loops=4 \ OPT_FLAGS?= -march=native -fgraphite -fopenmp -floop-parallelize-all -ftree-parallelize-loops=4 \
-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block \
-fno-stack-check
CXX_OPT_FLAGS?= $(OPT_FLAGS) -felide-constructors CXX_OPT_FLAGS?= $(OPT_FLAGS) -felide-constructors

@ -27,10 +27,10 @@ namespace rng
return fract(sin(dot(state, vec2)) * 43758.5453); return fract(sin(dot(state, vec2)) * 43758.5453);
} }
inline frng(double s1, double s2) : state({s1, s2}){} inline constexpr frng(double s1, double s2) : state({s1, s2}){}
inline frng(const std::array<double, 2>& ar) : state(ar){} inline constexpr frng(const std::array<double, 2>& ar) : state(ar){}
inline frng(std::array<double, 2>&& ar) : state(ar){} inline constexpr frng(std::array<double, 2>&& ar) : state(ar){}
inline frng(const double (&ar)[2]) : state({ar[0], ar[1]}) {} inline constexpr frng(const double (&ar)[2]) : state({ar[0], ar[1]}) {}
inline constexpr double next_double() override { return sample(); } inline constexpr double next_double() override { return sample(); }
inline constexpr float next_float() override { return (float)sample(); } inline constexpr float next_float() override { return (float)sample(); }

Loading…
Cancel
Save