Adjust MemSet macro to use size_t rather than long
David Rowley <drowley@postgresql.org>
Adjust MemSet macro to use size_t rather than long Likewise for MemSetAligned. "long" wasn't the most suitable type for these macros as with MSVC in 64-bit builds, sizeof(long) == 4, which is narrower than the processor's word size, therefore these macros had to perform twice as many loops as they otherwise might. Author: David Rowley <dgrowleyml@gmail.com> Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Discussion: https://postgr.es/m/CAApHDvoGFjSA3aNyVQ3ivbyc4ST=CC5L-_VjEUQ92HbE2Cxovg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/include/c.h | modified | +19 −19 |
Discussion
- Some efforts to get rid of "long" in our codebase 10 messages · 2025-11-06 → 2025-11-16