Commit ae932c13 authored by buntinas's avatar buntinas
Browse files

fixed rdtscp in configure.in

parent 806c4c19
......@@ -4740,7 +4740,7 @@ pac_cv_posix_clock_realtime=no)
pac_cv_linux86_cycle,[
AC_TRY_COMPILE(,[
long long var, *var_ptr=&var;
__asm__ __volatile__("rdtscp; shl $32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
__asm__ __volatile__("rdtscp; shl \$32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
],pac_cv_linux86_cycle=rdtscp,
AC_TRY_COMPILE(,[
long long var, *var_ptr=&var;
......
......@@ -135,7 +135,7 @@ dnl gcc checking
pac_cv_linux86_cycle,[
AC_TRY_COMPILE(,[
long long var, *var_ptr=&var;
__asm__ __volatile__("rdtscp; shl $32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
__asm__ __volatile__("rdtscp; shl \$32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
],pac_cv_linux86_cycle=rdtscp,
AC_TRY_COMPILE(,[
long long var, *var_ptr=&var;
......
......@@ -176,7 +176,7 @@ dnl gcc checking
pac_cv_linux86_cycle,[
AC_TRY_COMPILE(,[
long long var, *var_ptr=&var;
__asm__ __volatile__("rdtscp; shl $32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
__asm__ __volatile__("rdtscp; shl \$32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
],pac_cv_linux86_cycle=rdtscp,
AC_TRY_COMPILE(,[
long long var, *var_ptr=&var;
......
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