On 15/04/2012 23:31, bearophile wrote: <snip>
You have seen std.math.expi, that returns a creal using the instructions sincos plus a registers swap (so it returns complex(cos,sin)). Maybe it's worth adding to Phobos a fully inlinable core.bitop.sincos intrinsic that performs just the sincos.
I'd never imagined that x86 CPUs had such an instruction built in, but I can begin to imagine why.
But in what way are trig functions bit-level operations? Stewart.