Add description and cautionary note regarding CACHE_LINE_SIZE.
MFC after: 2 weeks Suggested by: alc
This commit is contained in:
parent
6bed074cd2
commit
22037b2d2c
@ -89,6 +89,10 @@
|
|||||||
#define ALIGN(p) _ALIGN(p)
|
#define ALIGN(p) _ALIGN(p)
|
||||||
#define ALIGNED_POINTER(p,t) _ALIGNED_POINTER(p,t)
|
#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
|
#ifndef CACHE_LINE_SHIFT
|
||||||
#define CACHE_LINE_SHIFT 6
|
#define CACHE_LINE_SHIFT 6
|
||||||
#endif
|
#endif
|
||||||
|
@ -81,6 +81,10 @@
|
|||||||
#define ALIGNBYTES _ALIGNBYTES
|
#define ALIGNBYTES _ALIGNBYTES
|
||||||
#define ALIGN(p) _ALIGN(p)
|
#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
|
#ifndef CACHE_LINE_SHIFT
|
||||||
#define CACHE_LINE_SHIFT 6
|
#define CACHE_LINE_SHIFT 6
|
||||||
#endif
|
#endif
|
||||||
|
@ -74,6 +74,10 @@
|
|||||||
#define ALIGNBYTES _ALIGNBYTES
|
#define ALIGNBYTES _ALIGNBYTES
|
||||||
#define ALIGN(p) _ALIGN(p)
|
#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
|
#ifndef CACHE_LINE_SHIFT
|
||||||
#define CACHE_LINE_SHIFT 6
|
#define CACHE_LINE_SHIFT 6
|
||||||
#endif
|
#endif
|
||||||
|
@ -99,6 +99,10 @@
|
|||||||
#define ALIGN(p) _ALIGN(p)
|
#define ALIGN(p) _ALIGN(p)
|
||||||
#define ALIGNED_POINTER(p,t) _ALIGNED_POINTER(p,t)
|
#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
|
#ifndef CACHE_LINE_SHIFT
|
||||||
#define CACHE_LINE_SHIFT 6
|
#define CACHE_LINE_SHIFT 6
|
||||||
#endif
|
#endif
|
||||||
|
@ -89,6 +89,10 @@
|
|||||||
#define ALIGNBYTES _ALIGNBYTES
|
#define ALIGNBYTES _ALIGNBYTES
|
||||||
#define ALIGN(p) _ALIGN(p)
|
#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
|
#ifndef CACHE_LINE_SHIFT
|
||||||
#define CACHE_LINE_SHIFT 6
|
#define CACHE_LINE_SHIFT 6
|
||||||
#endif
|
#endif
|
||||||
|
@ -79,6 +79,10 @@
|
|||||||
#define ALIGNBYTES _ALIGNBYTES
|
#define ALIGNBYTES _ALIGNBYTES
|
||||||
#define ALIGN(p) _ALIGN(p)
|
#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
|
#ifndef CACHE_LINE_SHIFT
|
||||||
#define CACHE_LINE_SHIFT 7
|
#define CACHE_LINE_SHIFT 7
|
||||||
#endif
|
#endif
|
||||||
|
@ -71,6 +71,10 @@
|
|||||||
#define ALIGNBYTES _ALIGNBYTES
|
#define ALIGNBYTES _ALIGNBYTES
|
||||||
#define ALIGN(p) _ALIGN(p)
|
#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
|
#ifndef CACHE_LINE_SHIFT
|
||||||
#define CACHE_LINE_SHIFT 6
|
#define CACHE_LINE_SHIFT 6
|
||||||
#endif
|
#endif
|
||||||
|
@ -71,6 +71,10 @@
|
|||||||
#define ALIGNBYTES _ALIGNBYTES
|
#define ALIGNBYTES _ALIGNBYTES
|
||||||
#define ALIGN(p) _ALIGN(p)
|
#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
|
#ifndef CACHE_LINE_SHIFT
|
||||||
#define CACHE_LINE_SHIFT 6
|
#define CACHE_LINE_SHIFT 6
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user