search for: my_fp_val

Displaying 2 results from an estimated 2 matches for "my_fp_val".

2016 Apr 14
2
Integer -> Floating point -> Integer cast optimizations
...e target machine or different? > o How does the pre-processor evaluate FP arithmetic - is it the same as the target machine or different? > > These have been issues since the very first ISO C standard (ANSI C'89/ISO C'90) and before. Very simple things like: > > #define MY_FP_VAL (3.14159 / 2.0) > > Where is that divide performed? In that compiler subject to host FP rules? In the compiler subject to target rules? Executed dynamically by the host? The same problem occurs when performing constant folding in the compiler, should it follow a model that is different t...
2016 Apr 15
2
Integer -> Floating point -> Integer cast optimizations
...> o How does the pre-processor evaluate FP arithmetic - is it the same as the target machine or different? >>> >>> These have been issues since the very first ISO C standard (ANSI C'89/ISO C'90) and before. Very simple things like: >>> >>> #define MY_FP_VAL (3.14159 / 2.0) >>> >>> Where is that divide performed? In that compiler subject to host FP rules? In the compiler subject to target rules? Executed dynamically by the host? The same problem occurs when performing constant folding in the compiler, should it follow a model tha...