aboutsummaryrefslogtreecommitdiff
path: root/src/where.c
diff options
context:
space:
mode:
authordrh <>2022-04-01 18:45:11 +0000
committerdrh <>2022-04-01 18:45:11 +0000
commitcf6e3fd787fdcc3eb2e5edf2ea80146a195ac874 (patch)
treef888cdbb2d806c26ecaec3dc8620ed655ecd06e9 /src/where.c
parent473571b083e6387da0a0268ab396bf1243a15491 (diff)
downloadsqlite-cf6e3fd787fdcc3eb2e5edf2ea80146a195ac874.tar.gz
sqlite-cf6e3fd787fdcc3eb2e5edf2ea80146a195ac874.zip
New macro ROUND8P() which works like ROUND8() but assumes that the input is
already a multiple of the size of a pointer. It becomes a no-op for 64-bit machines, giving a small size reduction and speed boost. FossilOrigin-Name: d126f304cde66ebfe21a4967c22dcba0bac27cbce56318b14bd50051e49c978c
Diffstat (limited to 'src/where.c')
-rw-r--r--src/where.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c
index c8a3cba2e..f9f42d528 100644
--- a/src/where.c
+++ b/src/where.c
@@ -5408,7 +5408,7 @@ WhereInfo *sqlite3WhereBegin(
** field (type Bitmask) it must be aligned on an 8-byte boundary on
** some architectures. Hence the ROUND8() below.
*/
- nByteWInfo = ROUND8(sizeof(WhereInfo)+(nTabList-1)*sizeof(WhereLevel));
+ nByteWInfo = ROUND8P(sizeof(WhereInfo)+(nTabList-1)*sizeof(WhereLevel));
pWInfo = sqlite3DbMallocRawNN(db, nByteWInfo + sizeof(WhereLoop));
if( db->mallocFailed ){
sqlite3DbFree(db, pWInfo);