newlib?: pow function can produce incorrect results.

Cary R.
Mon Apr 23 23:52:00 GMT 2007

I had some more time to look into this and when the
simple C program I mentioned earlier uses variables
like the other program, incorrect results are
produced. I have attached this C/C++ program. I
certainly don't understand what is going on. I would
have expected pow to be pass-by value which should
make the two calls identical from a system standpoint,
but the results imply something different. Any
suggestions would be greatly appreciated.


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pow-error.c
Type: application/octet-stream
Size: 1744 bytes
Desc: 3225223843-pow-error.c
URL: <>
-------------- next part --------------
Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list