Common: Add RESTRICT macro
Gotta coerce the compiler into generating better code.
This commit is contained in:
parent
31c1cfa650
commit
7116a80435
|
@ -93,6 +93,13 @@ char (&__countof_ArraySizeHelper(T (&array)[N]))[N];
|
||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// __restrict, potentially enables optimization by hinting the compiler that the object is unique.
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#define RESTRICT __restrict
|
||||||
|
#else
|
||||||
|
#define RESTRICT __restrict__
|
||||||
|
#endif
|
||||||
|
|
||||||
// disable warnings that show up at warning level 4
|
// disable warnings that show up at warning level 4
|
||||||
// TODO: Move to build system instead
|
// TODO: Move to build system instead
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
Loading…
Reference in New Issue