| От | Tom Lane |
|---|---|
| Тема | Re: Proposal: Trigonometric functions in degrees |
| Дата | |
| Msg-id | 2997.1453580534@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Proposal: Trigonometric functions in degrees (Noah Misch <noah@leadboat.com>) |
| Список | pgsql-hackers |
Noah Misch <noah@leadboat.com> writes:
> On Sat, Jan 23, 2016 at 12:08:40PM -0500, Tom Lane wrote:
>> So I pushed that, and tern/sungazer are still failing. Noah, could you
>> trace through that and see exactly where it's going off the rails?
> The second sin() is a constant, so gcc computes it immediately but sends the
> first sin() to libm. The libm sin() is slightly more accurate.
Ugh. "compile-time simplification uses different version of sin()" was
one of the theories I had in mind, but I was hoping that wasn't it
because it'd be the hardest to work around reliably. Still, I think it's
doable by caching the results of the should-be-constant subexpressions.
Will get on it.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера