Fix crash when debug output is enabled and sarea is notset in r200Clear
[mesa.git] / src / mesa / main / imports.h
index 4192f037c00b2fe7c4da9ec7562fa950248fad60..7b61e22e9322b8a18a359be503b685113f0c0ed8 100644 (file)
@@ -256,15 +256,7 @@ static INLINE int GET_FLOAT_BITS( float x )
 /***
  *** IROUND: return (as an integer) float rounded to nearest integer
  ***/
-#if defined(USE_SPARC_ASM) && defined(__GNUC__) && defined(__sparc__)
-static INLINE int iround(float f)
-{
-   int r;
-   __asm__ ("fstoi %1, %0" : "=f" (r) : "f" (f));
-   return r;
-}
-#define IROUND(x)  iround(x)
-#elif defined(USE_X86_ASM) && defined(__GNUC__) && defined(__i386__) && \
+#if defined(USE_X86_ASM) && defined(__GNUC__) && defined(__i386__) && \
                        (!(defined(__BEOS__) || defined(__HAIKU__))  || \
                        (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)))
 static INLINE int iround(float f)