Operator overloading, structs

Robert Fraser fraserofthenight at gmail.com
Thu Jun 4 15:52:24 PDT 2009


BCS wrote:
> If you can 
> assume that any FPU will be designed to work with IEEE 754 (would that 
> be valid now days?)

Not at all!

IIRC, some of the PS2's CPUs don't implement NaN or Infinity (just check 
out the "Advanced" page of PCSX2, you can set how accurately the various 
PS2 CPUs FP operations are emulated on x86). Not sure if the PS2 is "now 
days," but...

Also, this is kind of old, but it suggests GPUs have all sorts of 
different behavior: http://www.cs.unc.edu/~ibr/projects/paranoia/ ... 
When being used only for graphics, accuracy often isn't as important as 
speed, however with GPGPU, I wouldn't be surprised if newer GPUs were 
IEEE-compliant.



More information about the Digitalmars-d mailing list