Fix msvc build.
This commit is contained in:
parent
547c59e52f
commit
79360e6501
@ -6,10 +6,14 @@
|
||||
|
||||
#include "nvcore.h"
|
||||
|
||||
#if NV_CC_MSVC
|
||||
#include <intrin.h>
|
||||
#endif
|
||||
|
||||
namespace nv {
|
||||
|
||||
#if NV_CC_MSVC
|
||||
NV_FORCEINLINE uint64 fastCpuClock() { return rdtsc(); }
|
||||
NV_FORCEINLINE uint64 fastCpuClock() { return __rdtsc(); }
|
||||
#elif NV_CC_GNUC && NV_CPU_X86
|
||||
NV_FORCEINLINE uint64 fastCpuClock() {
|
||||
uint64 val;
|
||||
|
Loading…
Reference in New Issue
Block a user