mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
fts(3) integration patches
This commit is contained in:
parent
16b2e59175
commit
f798d06073
1 changed files with 3 additions and 1 deletions
|
|
@ -57,7 +57,9 @@
|
|||
* for all data types (int, long, ...). The result is u_int and
|
||||
* must be cast to any desired pointer type.
|
||||
*/
|
||||
#define ALIGN(p) (((u_int)(p) + (sizeof(int) - 1)) &~ (sizeof(int) - 1))
|
||||
#define ALIGNBYTES (sizeof(int) - 1)
|
||||
#define ALIGN(p) (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES)
|
||||
|
||||
|
||||
#define NBPG 4096 /* bytes/page */
|
||||
#define PGOFSET (NBPG-1) /* byte offset into page */
|
||||
|
|
|
|||
Loading…
Reference in a new issue