Commit ada3e7a3 by Nicolas Capens Committed by Nicolas Capens

Remove a GCC-specific intrinsic

Bug 18720257 Change-Id: I7dc9257ca47d701cfa190856ad3c2db39495bbdb Reviewed-on: https://swiftshader-review.googlesource.com/1621Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent c71c4506
...@@ -49,11 +49,10 @@ namespace sw ...@@ -49,11 +49,10 @@ namespace sw
{ {
#if defined(_WIN32) #if defined(_WIN32)
return __rdtsc(); return __rdtsc();
#elif __GNUC_PREREQ(4,5)
return __builtin_ia32_rdtsc();
#else #else
assert(false); // UNIMPLEMENTED int64_t tsc;
return 0; __asm volatile("rdtsc": "=A" (tsc));
return tsc;
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment