The attached sample code gives inaccurate results on x86_64 compared to 32 bit where it works. gcc version 3.4.5 20051201 (Red Hat 3.4.5-2) glibc-2.3.4-2.19 powf results fractional error is larger than 1 part in 1 million.
Created attachment 1384 [details] test program OUTPUT on x86_64 system ----------------------- x is 0.843334257602691650390625 y is -370 pow(x,y) is 2399359442378151177461170176 powf(x,y) is 2399362098709297791636602880 fractional error 1.1071e-06 ------------------------------------ Output on 32 bit system (CORRECT!) ---------------------------------- x is 0.843334257602691650390625 y is -370 pow(x,y) is 2399359442378151177461170176 powf(x,y) is 2399359442378151177461170176 fractional error 0
Bug 1161 is also about powf inaccuracy on x86_64. Marking as dup. *** This bug has been marked as a duplicate of 1161 ***