diff options
author | Ricardo M. Correia <rcorreia@wizy.org> | 2012-06-07 19:14:18 +0200 |
---|---|---|
committer | Ricardo M. Correia <rcorreia@wizy.org> | 2012-06-07 20:22:18 +0200 |
commit | 31ac53fbdc2346876da201b9e1495565b38b46ba (patch) | |
tree | 97b316d9ec964f36d1b96771f68659e46e736a39 /src/util.h | |
parent | 43346904e15c3f1c3f92eee140dbf37b897c7c21 (diff) |
Move NOINLINE definition to test where it's used.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/util.h b/src/util.h index cfc20b3275..b77eb43c99 100644 --- a/src/util.h +++ b/src/util.h @@ -43,23 +43,6 @@ static const int64 CENT = 1000000; #define ARRAYLEN(array) (sizeof(array)/sizeof((array)[0])) #define printf OutputDebugStringF -// Unfortunately there's no standard way of preventing a function from being -// inlined, so we define a macro for it. -// -// You should use it like this: -// NOINLINE void function() {...} -#if defined(__GNUC__) -// This also works and will be defined for any compiler implementing gcc -// extensions, such as clang and icc. -#define NOINLINE __attribute__((noinline)) -#elif defined(_MSC_VER) -#define NOINLINE __declspec(noinline) -#else -// We give out a warning because it impacts the correctness of one bignum test. -#warning You should define NOINLINE for your compiler. -#define NOINLINE -#endif - #ifdef snprintf #undef snprintf #endif |