search for: test_vectorize_exp

Displaying 1 result from an estimated 1 matches for "test_vectorize_exp".

2017 Mar 20
2
-ffast-math optimizations impacted by symbol renaming in header files
...---------------------------- // File: test_vectorize.c // Vectorization will occur with: // clang -O2 -S -emit-llvm -fno-math-errno test_vectorize.c // Vectorization will not occur with: // clang -O2 -S -emit-llvm -fno-math-errno -ffast-math test_vectorize.c #include <math.h> void test_vectorize_exp(long n, float* restrict y, float* restrict x) { long i; for (i = 0; i < n; i++) { x[i] = expf(y[i]); } }