summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-06-19 20:40:15 -0700
committerMatt Turner <mattst88@gmail.com>2015-06-23 12:24:42 -0700
commit04758d25b4240129d4fa8784608a54c40bff3568 (patch)
tree35505546b22a26b062354edcb859702bb886f7ff /src/mesa/main/imports.h
parenta49328d58d1e3e143f9434976d9f3574acefc4ea (diff)
downloadexternal_mesa3d-04758d25b4240129d4fa8784608a54c40bff3568.zip
external_mesa3d-04758d25b4240129d4fa8784608a54c40bff3568.tar.gz
external_mesa3d-04758d25b4240129d4fa8784608a54c40bff3568.tar.bz2
mesa: Delete unused ICEIL().
Can't find any uses of it in git history. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'src/mesa/main/imports.h')
-rw-r--r--src/mesa/main/imports.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index c4d917e..9ffe3de 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -230,38 +230,6 @@ static inline int IFLOOR(float f)
}
-/** Return (as an integer) ceiling of float */
-static inline int ICEIL(float f)
-{
-#if defined(USE_X86_ASM) && defined(__GNUC__) && defined(__i386__)
- /*
- * IEEE ceil for computers that round to nearest or even.
- * 'f' must be between -4194304 and 4194303.
- * This ceil operation is done by "(iround(f + .5) + iround(f - .5) + 1) >> 1",
- * but uses some IEEE specific tricks for better speed.
- * Contributed by Josh Vanderhoof
- */
- int ai, bi;
- double af, bf;
- af = (3 << 22) + 0.5 + (double)f;
- bf = (3 << 22) + 0.5 - (double)f;
- /* GCC generates an extra fstp/fld without this. */
- __asm__ ("fstps %0" : "=m" (ai) : "t" (af) : "st");
- __asm__ ("fstps %0" : "=m" (bi) : "t" (bf) : "st");
- return (ai - bi + 1) >> 1;
-#else
- int ai, bi;
- double af, bf;
- fi_type u;
- af = (3 << 22) + 0.5 + (double)f;
- bf = (3 << 22) + 0.5 - (double)f;
- u.f = (float) af; ai = u.i;
- u.f = (float) bf; bi = u.i;
- return (ai - bi + 1) >> 1;
-#endif
-}
-
-
/**
* Is x a power of two?
*/