Re: Keep compiler silence (clang 10, implicit conversion from 'long' to 'double' )

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: Keep compiler silence (clang 10, implicit conversion from 'long' to 'double' )
Дата
Msg-id 87h83hlkkj.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на Re: Keep compiler silence (clang 10, implicit conversion from 'long' to 'double' )  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Keep compiler silence (clang 10, implicit conversion from 'long'to 'double' )
Список pgsql-hackers
>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:

 >> But PostgreSQL effectively requires IEEE 754 since commit
 >> 02ddd499322ab6f2f0d58692955dc9633c2150fc, right?

 Tom> That commit presumes that floats follow the IEEE bitwise
 Tom> representation, I think;

Correct. (It notably does _not_ make any assumptions about how floating
point arithmetic or comparisons work - all the computation is done in
integers.)

 Tom> but it's a long way from there to assuming that float comparisons
 Tom> do something that is explicitly *not* promised by C99.

I agree.

-- 
Andrew (irc:RhodiumToad)



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Duplicate entries in pg_depend after REINDEX CONCURRENTLY
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [PATCH][DOC] Fix for PREPARE TRANSACTION doc and postgres_fdwmessage.