From: | Jeremy Kerr <jk(at)ozlabs(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Florian Weimer <fweimer(at)bfk(dot)de>, pgsql-hackers(at)postgresql(dot)org, Atsushi Ogawa <a_ogawa(at)hi-ho(dot)ne(dot)jp> |
Subject: | Re: [PATCH v2] Add bit operations util header |
Date: | 2009-06-03 23:44:30 |
Message-ID: | 200906040944.30578.jk@ozlabs.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi Tom,
> The other thing I didn't like about the patch was the assumption that
> it's okay to have a "static inline" function in a header. You can
> get away with that in gcc but *not* in other compilers.
Gee, you user-space guys have it tough! :D
Point taken, will rework.
> Look at the existing coding patterns for, eg, list_head; then go thou
> and do likewise. Or, since there's currently no need for the code
> outside aset.c, forget about putting it in a header and just plop it
> into aset.c.
OK, I'll add a configure check and conditionally use the builtin if it's
available. I have some other patches that could be improved by using
other builtins, so it would be a good opportunity to figure out a nice
pattern for doing this.
Cheers,
Jeremy
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2009-06-04 01:07:38 | Re: Plan time Improvement - 64bit bitmapset |
Previous Message | Hiroshi Inoue | 2009-06-03 23:41:41 | Re: [GENERAL] trouble with to_char('L') |