Displaying 3 results from an estimated 3 matches for "a22d86df".
2010 Jul 23
0
[LLVMdev] Floating-Point Overflow check
On Jul 23, 2010, at 7:20 AM, Steffen Geißinger wrote:
> i need to check if an overflow of an floating-point arithmetic operation occured.
> Currently I'm doing something like this (for addition):
>
> (LHS > 0 && RHS > 0 && sum <= 0) || (LHS < 0 && RHS < 0 && sum >= 0)
IEEE floating-point doesn't overflow like this; if the
2010 Jul 26
1
[LLVMdev] Floating-Point Overflow check
...ng about compile-time arithmetic, you should be using the
APFloat library, which figures this out for you.
No I'm talking about run-time.
-- Steffen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100726/a22d86df/attachment.html>
2010 Jul 23
4
[LLVMdev] Floating-Point Overflow check
Hi,
i need to check if an overflow of an floating-point arithmetic operation
occured.
Currently I'm doing something like this (for addition):
(LHS > 0 && RHS > 0 && sum <= 0) || (LHS < 0 && RHS < 0 && sum >= 0)
This is checked for every addition.
Is there a more efficient way like the intrisic for int overflow?
How is it possible to raise a