From d65d57d06ebc3ed5a9a81068620af70bc2506f55 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 30 Jan 2013 15:11:24 +0100 Subject: [PATCH] Uses __asm__ instead of asm keyword to prevent from troubles during compilation. http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html --- src/crapto1.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/crapto1.h b/src/crapto1.h index 792be8c..4b8c90c 100644 --- a/src/crapto1.h +++ b/src/crapto1.h @@ -62,13 +62,13 @@ extern "C" { x ^= x >> 4; return BIT(0x6996, x & 0xf); #else - asm("movl %1, %%eax\n" - "mov %%ax, %%cx\n" - "shrl $0x10, %%eax\n" - "xor %%ax, %%cx\n" - "xor %%ch, %%cl\n" - "setpo %%al\n" - "movzx %%al, %0\n": "=r"(x) : "r"(x): "eax", "ecx"); + __asm__("movl %1, %%eax\n" + "mov %%ax, %%cx\n" + "shrl $0x10, %%eax\n" + "xor %%ax, %%cx\n" + "xor %%ch, %%cl\n" + "setpo %%al\n" + "movzx %%al, %0\n": "=r"(x) : "r"(x): "eax", "ecx"); return x; #endif }