llvmpipe: Change asm to __asm__.
authorWitold Baryluk <baryluk@smp.if.uj.edu.pl>
Mon, 13 Sep 2010 17:57:35 +0000 (18:57 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 13 Sep 2010 17:58:50 +0000 (18:58 +0100)
According to gcc documentation both are equivalent,
second are prefered as first can make conflict with existing symbols.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_setup_tri.c

index 3b7fd5d..53ffb95 100644 (file)
@@ -449,9 +449,9 @@ floor_pot(uint32_t n)
 {
    assert(n);
 #if defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86)
-   asm("bsr %1,%0"
-       : "=r" (n)
-       : "rm" (n));
+   __asm__("bsr %1,%0"
+          : "=r" (n)
+          : "rm" (n));
    return 1 << n;
 #else
    n |= (n >>  1);