llvmpipe: use gcc asm only with gcc
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 13 Sep 2010 08:24:09 +0000 (09:24 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 13 Sep 2010 08:24:09 +0000 (09:24 +0100)
src/gallium/drivers/llvmpipe/lp_setup_tri.c

index 2cd10ed42017470aebfadb8bb14f079d638f562a..f0c74f8040a3f403c04095ba1f5fc8951cbd6526 100644 (file)
@@ -445,7 +445,7 @@ do_triangle_ccw(struct lp_setup_context *setup,
  *
  * Undefined if no zero exists, so code should check against ~0UL first.
  */
-#if defined(PIPE_ARCH_X86)
+#if defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86)
 static inline unsigned fls(unsigned word)
 {
         asm("bsr %1,%0"