Re: [BUGS] Postgres storing time in strange manner

2002-09-16 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > If the test doesn't use any library function's run-time behavior, you can > usually do something like > main() { > int a[(2.0+2.0==4.0)?1:-1] > } > This will fail to compile if the floating-point arithmetic is broken. However, unless gcc itself is

Re: [BUGS] Postgres storing time in strange manner

2002-09-16 Thread Tom Lane
I said: > I had success with this test: BTW, some digging in the assembly code shows that the actual problem is this: instead of emitting "x / 3600.0", with -ffast-math the compiler emits the equivalent of "x * (double) (1.0 / 3600.0)". It's the last-bit inaccuracy of the latter constant that's