Explicitly sets "fast math" for a function, enabling aggressive math
optimizations. These optimizations may dramatically change the outcome of
floating point calculations (e.g. because of reassociation).
importldc.attributes;
@fastmathdoubledot(double[] a, double[] b) {
doubles = 0;
foreach(size_ti; 0..a.length)
{
// will result in vectorized fused-multiply-add instructionss += a * b;
}
returns;
}
Explicitly sets "fast math" for a function, enabling aggressive math optimizations. These optimizations may dramatically change the outcome of floating point calculations (e.g. because of reassociation).