diff options
author | danielk1977 <danielk1977@noemail.net> | 2009-03-23 04:33:32 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2009-03-23 04:33:32 +0000 |
commit | bc73971db6162bf60d775775b180cea06615b29c (patch) | |
tree | 3e9bd43e05e6924e8b5147ffc625338472c40d9f /src/sqliteInt.h | |
parent | ca18d20fd69801f8dcf4693fcfb5fb22d65e9746 (diff) | |
download | sqlite-bc73971db6162bf60d775775b180cea06615b29c.tar.gz sqlite-bc73971db6162bf60d775775b180cea06615b29c.zip |
Use the ROUND8() macro to round an integer up to the nearest multiple of 8 and ROUNDDOWN8() macro to round down to the nearest multiple of 8. This is a cosmetic change. (CVS 6372)
FossilOrigin-Name: db1d4d2f5083adf5438c7f387b115180800e7bd9
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 506daaee9..67836d1b0 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -11,7 +11,7 @@ ************************************************************************* ** Internal interface definitions for SQLite. ** -** @(#) $Id: sqliteInt.h,v 1.844 2009/03/20 14:18:52 danielk1977 Exp $ +** @(#) $Id: sqliteInt.h,v 1.845 2009/03/23 04:33:33 danielk1977 Exp $ */ #ifndef _SQLITEINT_H_ #define _SQLITEINT_H_ @@ -448,7 +448,12 @@ extern const int sqlite3one; ** Round up a number to the next larger multiple of 8. This is used ** to force 8-byte alignment on 64-bit architectures. */ -#define ROUND8(x) ((x+7)&~7) +#define ROUND8(x) (((x)+7)&~7) + +/* +** Round down to the nearest multiple of 8 +*/ +#define ROUNDDOWN8(x) ((x)&~7) /* ** An instance of the following structure is used to store the busy-handler |