aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/backend/degenerate-ptr.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-03-26 17:29:33 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-11-18 14:03:26 +0100
commit25dbd228c11410218242e585c598697005c707ea (patch)
tree4371572c4e7f05fb61720b950250cc7821b48b27 /validation/backend/degenerate-ptr.c
parent1c182507c3981aa20193c68d7cfd32d750b571cf (diff)
downloadsparse-dev-25dbd228c11410218242e585c598697005c707ea.tar.gz
add support of floating-point specific arithmetic ops
Floating-point arithmetic is quite different from the arithmetic on integers or the one of real numbers. In particular, most transformations, simplifications that can be done on integers are invalid when done on floats. For example: - associativity doesn't hold - distributivity doesn't hold - comparison is tricky & complex This is because (among others things): - limited precision, rounding everywhere - presence of signed zeroes - presence of infinities - presence of NaNs (signaling or quiet) - presence of numbers without inverse - several kind of exceptions. Since they don't follow the same rules as their integer counterpart, better to give them a specific opcode instead of having to test the type of the operands at each manipulation. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/backend/degenerate-ptr.c')
0 files changed, 0 insertions, 0 deletions