Hi all, I have got a following function: int is_negligible (double a, double b) { volatile double c = a + b; return (c - b) == 0.0; }Can this be optimized in some way? (I need it to work the same way even when gcc -O2 is used)
TIA -Ladislav
Hi all, I have got a following function: int is_negligible (double a, double b) { volatile double c = a + b; return (c - b) == 0.0; }Can this be optimized in some way? (I need it to work the same way even when gcc -O2 is used)
TIA -Ladislav