| От | Gavin Sherry |
|---|---|
| Тема | Re: Numeric version of factorial() |
| Дата | |
| Msg-id | Pine.LNX.4.21.0308011330030.25534-200000@linuxworld.com.au обсуждение исходный текст |
| Ответ на | Re: Numeric version of factorial() (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Numeric version of factorial()
|
| Список | pgsql-patches |
On Thu, 31 Jul 2003, Tom Lane wrote: > Gavin Sherry <swm@linuxworld.com.au> writes: > > What are your feelings about numeric argument vs. int4/int8 arguments? > > Actually I think it'd be fine to take int8. We'd not be able to cope > with any larger input anyway, and the inner loop could be noticeably > faster if the control logic just deals with int. > > We could leave the factorial(numeric) case open for a future > implementation that uses gamma, if anyone gets hot to do it. > Attached is a revised patch based on your Tom's comments. It removes int[248]fac(), modifies regression tests (which referenced int4fac()), and implements a much cleaned numeric_fac(). > regards, tom lane > Thanks, Gavin
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера