Import combined Enhanced viewport: zoom out, overlays & tooltips (r53_27127) patch
https://www.tt-forums.net/viewtopic.php?f=33&t=53394
This commit is contained in:

committed by
Jonathan G Rennison

parent
fd3388467f
commit
536a95dfd0
15
src/stdafx.h
15
src/stdafx.h
@@ -514,4 +514,19 @@ static inline void free(const void *ptr)
|
||||
#define IGNORE_UNINITIALIZED_WARNING_STOP
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Using _mm_prefetch() with gcc implies the compile flag -msse.
|
||||
* This is not the case with __builtin_prefetch() so the latter can be used in normal .cpp files.
|
||||
*/
|
||||
#if defined(_MSC_VER)
|
||||
#define INCLUDE_FOR_PREFETCH_NTA <xmmintrin.h>
|
||||
#define PREFETCH_NTA(address) _mm_prefetch((const char *) (address), _MM_HINT_NTA);
|
||||
#elif defined(__GNUC__)
|
||||
#define INCLUDE_FOR_PREFETCH_NTA "stdafx.h"
|
||||
#define PREFETCH_NTA(address) __builtin_prefetch((const void *) (address), 0, 0);
|
||||
#else
|
||||
#define INCLUDE_FOR_PREFETCH_NTA "stdafx.h"
|
||||
#define PREFETCH_NTA(address)
|
||||
#endif
|
||||
|
||||
#endif /* STDAFX_H */
|
||||
|
Reference in New Issue
Block a user