Sorry about the patch. Attaching it now so it can be considered as
There is a typo in the XML doc:
Please check that the documentation compiles.
I'm at odds with having the integer version rely on a double pow(), even
if it works. I think that there should be a specific integer version which
does use integer operations. From stack overflow, the following is
int ipow(int base, int exp)
int result = 1;
if (exp & 1)
result *= base;
exp >>= 1;
base *= base;
The integer version should be when x & y are integers *AND* y >= 0.
if y is a negative integer, the double version should be used.
Sent via pgsql-hackers mailing list (email@example.com)
To make changes to your subscription: