| From: | David Fetter <david(at)fetter(dot)org> |
|---|---|
| To: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | longs where uint64s could be |
| Date: | 2020-01-18 00:42:14 |
| Message-ID: | 20200118004213.GM32763@fetter.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Folks,
While going over places where I might use compiler intrinsics for
things like ceil(log2(n))) and next power of 2(n), I noticed that a
lot of things that can't be fractional are longs instead of, say,
uint64s. Is this the case for historical reasons, or is there some
more specific utility to expressing as longs things that can only have
non-negative integer values? Did this practice pre-date our
now-required 64-bit integers?
Thanks in advance for any insights into this!
Best,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Geoghegan | 2020-01-18 01:12:20 | Re: longs where uint64s could be |
| Previous Message | Rob Sargent | 2020-01-17 23:30:59 | Re: jsonb_set() strictness considered harmful to data |