clang is almost useless for complex arithmetic

Montgomery-Smith, Stephen stephen at missouri.edu
Thu Mar 27 02:02:21 UTC 2014


On 03/25/2014 07:22 PM, Steve Kargl wrote:
> It appears that clang developers have chosen the naive
> complex division algorithm, and it does not matter whether
> one turns CX_LIMITED_RANGE on or off.  This means that 
> if one uses clang with complex types, one must be careful
> with the range of values allowed in complex division.  In
> other words, implementation of complex libm routines cannot
> use complex data types and must fallback to a decomposition
> into real and imaginary components. 

Could someone write a patch for clang to fix this?


More information about the freebsd-numerics mailing list