A
Andrew Au \(Newsgroup\)
Is it possible to for me to have an expression
float a, b, d;
a = log(0);
b = 3;
d = a + b + sin(30);
Can we skip evaluation of sin(30) using compiler, since it is known that d
will be -Inf anyway, despite the value of sin(30).
Handcrafted shortcircuitting will result in shotgun surgery changes in many
different place, duplicated swelled code. (Folwer).
I am compiling using gcc.
float a, b, d;
a = log(0);
b = 3;
d = a + b + sin(30);
Can we skip evaluation of sin(30) using compiler, since it is known that d
will be -Inf anyway, despite the value of sin(30).
Handcrafted shortcircuitting will result in shotgun surgery changes in many
different place, duplicated swelled code. (Folwer).
I am compiling using gcc.