projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27358a2
)
a couple casts (Evgeny Kotsuba)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 26 May 2003 14:37:54 +0000
(14:37 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 26 May 2003 14:37:54 +0000
(14:37 +0000)
src/mesa/main/imports.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.h
b/src/mesa/main/imports.h
index
3dc793d
..
0bf6499
100644
(file)
--- a/
src/mesa/main/imports.h
+++ b/
src/mesa/main/imports.h
@@
-429,8
+429,8
@@
static INLINE int iceil(float f)
fi_type u;
af = (3 << 22) + 0.5 + (double)f;
bf = (3 << 22) + 0.5 - (double)f;
- u.f = af; ai = u.i;
- u.f = bf; bi = u.i;
+ u.f =
(float)
af; ai = u.i;
+ u.f =
(float)
bf; bi = u.i;
return (ai - bi + 1) >> 1;
}
#define ICEIL(x) iceil(x)