Displaying 3 results from an estimated 3 matches for "sourceformat".
Did you mean:
source_format
2014 Aug 07
3
[LLVMdev] Signed NaNs in APFloat arithmetic
...neous quiet-computational sign bit operations for all
> supported arithmetic formats; they only affect the sign bit. The operations treat floating-point numbers and
> NaNs alike, and signal no exception. These operations may propagate non-canonical encodings.
>
> sourceFormat copy(source)
> sourceFormat negate(source)
> sourceFormat abs(source)
>
> Multiplying by -1.0 has the potential to raise a floating point exception on sNaN inputs, and hence is not a valid implementation of negation per IEEE 754.
>
> —Owen
>
> On Aug 6, 2014,...
2014 Aug 07
2
[LLVMdev] Signed NaNs in APFloat arithmetic
In r187314, APFloat multiplication by with NaNs was made to always
yield a positive NaN. I am wondering whether that was the correct
decision. It is of course true that the result of a multiplication is
undefined in IEEE, however, we were using multiplication by -1.0 to
implement IEEE negate, which is defined to preserve the sign bit.
r210428 made 0-NaN have IEEE negate behavior, which is good
2014 Aug 07
2
[LLVMdev] Signed NaNs in APFloat arithmetic
...n bit operations for all
>>> supported arithmetic formats; they only affect the sign bit. The operations treat floating-point numbers and
>>> NaNs alike, and signal no exception. These operations may propagate non-canonical encodings.
>>>
>>> sourceFormat copy(source)
>>> sourceFormat negate(source)
>>> sourceFormat abs(source)
>>>
>>> Multiplying by -1.0 has the potential to raise a floating point exception on sNaN inputs, and hence is not a valid implementation of negation per IEEE 754.
>>>...