Add description and cautionary note regarding CACHE_LINE_SIZE.

MFC after:	2 weeks
Suggested by:	alc
This commit is contained in:
Robert Watson 2009-04-19 21:26:36 +00:00
parent 6bed074cd2
commit 22037b2d2c
8 changed files with 32 additions and 0 deletions

View File

@ -89,6 +89,10 @@
#define ALIGN(p) _ALIGN(p)
#define ALIGNED_POINTER(p,t) _ALIGNED_POINTER(p,t)
/*
* CACHE_LINE_SIZE is the compile-time maximum cache line size for an
* architecture. It should be used with appropriate caution.
*/
#ifndef CACHE_LINE_SHIFT
#define CACHE_LINE_SHIFT 6
#endif

View File

@ -81,6 +81,10 @@
#define ALIGNBYTES _ALIGNBYTES
#define ALIGN(p) _ALIGN(p)
/*
* CACHE_LINE_SIZE is the compile-time maximum cache line size for an
* architecture. It should be used with appropriate caution.
*/
#ifndef CACHE_LINE_SHIFT
#define CACHE_LINE_SHIFT 6
#endif

View File

@ -74,6 +74,10 @@
#define ALIGNBYTES _ALIGNBYTES
#define ALIGN(p) _ALIGN(p)
/*
* CACHE_LINE_SIZE is the compile-time maximum cache line size for an
* architecture. It should be used with appropriate caution.
*/
#ifndef CACHE_LINE_SHIFT
#define CACHE_LINE_SHIFT 6
#endif

View File

@ -99,6 +99,10 @@
#define ALIGN(p) _ALIGN(p)
#define ALIGNED_POINTER(p,t) _ALIGNED_POINTER(p,t)
/*
* CACHE_LINE_SIZE is the compile-time maximum cache line size for an
* architecture. It should be used with appropriate caution.
*/
#ifndef CACHE_LINE_SHIFT
#define CACHE_LINE_SHIFT 6
#endif

View File

@ -89,6 +89,10 @@
#define ALIGNBYTES _ALIGNBYTES
#define ALIGN(p) _ALIGN(p)
/*
* CACHE_LINE_SIZE is the compile-time maximum cache line size for an
* architecture. It should be used with appropriate caution.
*/
#ifndef CACHE_LINE_SHIFT
#define CACHE_LINE_SHIFT 6
#endif

View File

@ -79,6 +79,10 @@
#define ALIGNBYTES _ALIGNBYTES
#define ALIGN(p) _ALIGN(p)
/*
* CACHE_LINE_SIZE is the compile-time maximum cache line size for an
* architecture. It should be used with appropriate caution.
*/
#ifndef CACHE_LINE_SHIFT
#define CACHE_LINE_SHIFT 7
#endif

View File

@ -71,6 +71,10 @@
#define ALIGNBYTES _ALIGNBYTES
#define ALIGN(p) _ALIGN(p)
/*
* CACHE_LINE_SIZE is the compile-time maximum cache line size for an
* architecture. It should be used with appropriate caution.
*/
#ifndef CACHE_LINE_SHIFT
#define CACHE_LINE_SHIFT 6
#endif

View File

@ -71,6 +71,10 @@
#define ALIGNBYTES _ALIGNBYTES
#define ALIGN(p) _ALIGN(p)
/*
* CACHE_LINE_SIZE is the compile-time maximum cache line size for an
* architecture. It should be used with appropriate caution.
*/
#ifndef CACHE_LINE_SHIFT
#define CACHE_LINE_SHIFT 6
#endif