mirror of
https://github.com/postgres/postgres.git
synced 2025-10-24 01:29:19 +03:00
Install new alignment code to use MAXALIGN rather than DOUBLEALIGN where
approproate.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: hash.h,v 1.27 1999/07/16 17:07:26 momjian Exp $
|
||||
* $Id: hash.h,v 1.28 1999/07/19 07:07:27 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* modeled after Margo Seltzer's hash implementation for unix.
|
||||
@@ -202,7 +202,7 @@ typedef HashItemData *HashItem;
|
||||
#define BMPGSZ_BYTE(metap) ((metap)->hashm_bmsize)
|
||||
#define BMPGSZ_BIT(metap) ((metap)->hashm_bmsize << BYTE_TO_BIT)
|
||||
#define HashPageGetBitmap(pg) \
|
||||
((uint32 *) (((char *) (pg)) + DOUBLEALIGN(sizeof(PageHeaderData))))
|
||||
((uint32 *) (((char *) (pg)) + MAXALIGN(sizeof(PageHeaderData))))
|
||||
|
||||
/*
|
||||
* The number of bits in an ovflpage bitmap which
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: htup.h,v 1.24 1999/07/15 23:03:34 momjian Exp $
|
||||
* $Id: htup.h,v 1.25 1999/07/19 07:07:28 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -88,7 +88,7 @@ typedef struct HeapTupleData
|
||||
|
||||
typedef HeapTupleData *HeapTuple;
|
||||
|
||||
#define HEAPTUPLESIZE DOUBLEALIGN(sizeof(HeapTupleData))
|
||||
#define HEAPTUPLESIZE MAXALIGN(sizeof(HeapTupleData))
|
||||
|
||||
|
||||
/* ----------------
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: itup.h,v 1.20 1999/07/16 17:07:27 momjian Exp $
|
||||
* $Id: itup.h,v 1.21 1999/07/19 07:07:28 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -103,7 +103,7 @@ typedef struct PredInfo
|
||||
) \
|
||||
: \
|
||||
( \
|
||||
(Size)DOUBLEALIGN(sizeof(IndexTupleData) + sizeof(IndexAttributeBitMapData)) \
|
||||
(Size)MAXALIGN(sizeof(IndexTupleData) + sizeof(IndexAttributeBitMapData)) \
|
||||
) \
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user