rsimd

Make SIMD instruction sets easier to use
git clone git://git.meso-star.fr/rsimd.git
Log | Files | Refs | README | LICENSE

commit 72a6b734cfb49dab51ad80ca1b73562c0b5f22a0
parent 5a7f1ac790ce3354ae484a4cdcc6a70fbc389088
Author: vaplv <vaplv@free.fr>
Date:   Tue, 27 Jan 2015 13:47:15 +0100

Enable the "unroll-loops" optimization on the soa4f<2|3|4> functions

Diffstat:
Msrc/soa4fX.h | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/soa4fX.h b/src/soa4fX.h @@ -26,6 +26,11 @@ #include "rsimd.h" +#ifdef COMPILER_GCC + #pragma GCC push_options + #pragma GCC optimize("unroll-loops") +#endif + STATIC_ASSERT(SOA4FX_DIMENSION__ > 1, Unexpected_value); #define SOA4FX_FUNC__(Func) \ @@ -340,3 +345,8 @@ SOA4FX_FUNC__(selv) #undef SIZEOF_SOA4FX__ #undef SOA4FX_DIMENSION__ #undef SOA4FX_FUNC__ + +#ifndef COMPILER_GCC + #pragma GCC pop_options +#endif +