SIMD implementation of dot-product. Benchmarks

bearophile bearophileHUGS at lycos.com
Sat Aug 17 13:22:19 PDT 2013


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


More information about the Digitalmars-d-announce mailing list