Re: [HACKERS] more numeric stuff

2010-08-13 Thread Robert Haas
On Fri, Aug 13, 2010 at 1:10 PM, Bruce Momjian wrote: > Tom Lane wrote: >> > 3. 64-bit arithmetic.  Right now, mul_var() and div_var() use int for >> > arithmetic, but haven't we given up on supporting platforms without >> > long long?  I'm not sure I'm motivated enough to write the patch >> > mys

Re: [HACKERS] more numeric stuff

2010-08-13 Thread Bruce Momjian
Tom Lane wrote: > > 3. 64-bit arithmetic. Right now, mul_var() and div_var() use int for > > arithmetic, but haven't we given up on supporting platforms without > > long long? I'm not sure I'm motivated enough to write the patch > > myself, but it seems like 64-bit arithmetic would give us a lot

Re: [HACKERS] more numeric stuff

2010-08-04 Thread Robert Haas
On Wed, Aug 4, 2010 at 7:27 PM, Tom Lane wrote: > Robert Haas writes: >> On Wed, Aug 4, 2010 at 4:07 PM, Tom Lane wrote: >>> This would be good, but I'm not sure how to do it.  The main problem >>> again is NumericDigit alignment.  Only about half the time is the digit >>> array going to be alig

Re: [HACKERS] more numeric stuff

2010-08-04 Thread Tom Lane
Robert Haas writes: > On Wed, Aug 4, 2010 at 4:07 PM, Tom Lane wrote: >> This would be good, but I'm not sure how to do it.  The main problem >> again is NumericDigit alignment.  Only about half the time is the digit >> array going to be aligned the way you need, so that puts a real crimp >> in t

Re: [HACKERS] more numeric stuff

2010-08-04 Thread Robert Haas
On Wed, Aug 4, 2010 at 4:07 PM, Tom Lane wrote: > Robert Haas writes: >> I have a couple ideas for further work on the numeric code that I want >> to get feedback on. > >> 1. Cramming it down some more.  I propose that we introduce a third >> format with a one-byte header: 1 bit for sign, 3 bits

Re: [HACKERS] more numeric stuff

2010-08-04 Thread Tom Lane
Robert Haas writes: > I have a couple ideas for further work on the numeric code that I want > to get feedback on. > 1. Cramming it down some more. I propose that we introduce a third > format with a one-byte header: 1 bit for sign, 3 bits for dynamic > scale, and 4 bits for weight (the first of

[HACKERS] more numeric stuff

2010-08-04 Thread Robert Haas
I have a couple ideas for further work on the numeric code that I want to get feedback on. 1. Cramming it down some more. I propose that we introduce a third format with a one-byte header: 1 bit for sign, 3 bits for dynamic scale, and 4 bits for weight (the first of which is a sign bit). This mi