Ilya Yaroshenko:
http://spiceandmath.blogspot.ru/2013/08/simd-implementation-of-dot-product_17.html

From the blog post:

Compile fast_math code from other program separately and then link it. This is easy solution. However this is a step back to C.< To introduce a @fast_math attribute. This is hard to realize. But I hope this will be done for future compilers.<

One solution is to copy one of the features of Lisp, that is offer an annotation to specify different compilation switches for functions.

Since some time it's present in GNU-C too:
http://gcc.gnu.org/onlinedocs/gcc/Function-Specific-Option-Pragmas.html#Function-Specific-Option-Pragmas

Bye,
bearophile

Reply via email to