home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,242 of 2,753   
   christian.bau@cbau.wanadoo.co.uk to All   
   Re: Compiler optimization and floating p   
   28 Oct 13 15:50:07   
   
   > [I think you mean they're not associative.  I don't know any situations   
   > where a+b != b+a, but lots where a+(b+c) != (a+b)+c -John]   
      
   Take fused multiply-add, and the expression a*b + c*d.   
   It can be evaluated either as fma (a, b, c*d) or fma (c, d, a*b).   
      
   It would seem natural that the code for a*b + c*d and for c*d + a*b   
   would be different, with different results.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca