p12tic / libsimdpp

Portable header-only C++ low level SIMD library
Boost Software License 1.0
1.24k stars 129 forks source link

Add sane default #else clauses to most functions #55

Closed rblake-llnl closed 7 years ago

rblake-llnl commented 7 years ago

This branch replaces every usage of `#if SIMDPP_USE_NULL || .... good_stuff();

elif ....

else

SIMDPP_NOT_IMPLEMENTED(...)

endif

` With

`#if ....

else

good_stuff();

endif

`

These changes are necessary to adding a new architecture type for BlueGene/Q and QPX co-processors.

I wrote a script to do the bulk of the conversion and did the rest by hand. There are still some usages of SIMDPP_USE_NULL that I haven't been able to remove in the files below. I need someone more knowledgeable to advise me on how the following functions might break if I define a new architecture.