| От | Hal Snyder |
|---|---|
| Тема | Re: [HACKERS] snapshot and FreeBSD-2.2.7 not building |
| Дата | |
| Msg-id | 87ww35qaji.fsf@hippo.roxor.org обсуждение |
| Ответ на | Re: [HACKERS] snapshot and FreeBSD-2.2.7 not building (Bruce Momjian <maillist@candle.pha.pa.us>) |
| Ответы |
Re: [HACKERS] snapshot and FreeBSD-2.2.7 not building
|
| Список | pgsql-hackers |
Bruce Momjian <maillist@candle.pha.pa.us> writes: > I am now generating NAN by: > > double x; > > return (x-x)/(x-x); > > This seems to be the way my libm math library does it. The gcc2 -O4 > compile does not seem to optimize it away, so looks like it will work. > My guess is that the compiler can not optimize floating-point > computations. Thanks for the follow-up. Suggestion: At the top of numeric.c or in include/utils/numeric.h, put #ifndef NAN #define pgNAN (0.0/0.0) #endif Then in numeric.c, if NAN isn't defined, return pgNAN; -- Hal
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера