Why is complex being deprecated again?
Stewart Gordon
smjg_1998 at yahoo.com
Sun Apr 15 16:29:26 PDT 2012
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.
More information about the Digitalmars-d
mailing list