projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06a03bf
)
added a couple casts
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 15 May 2003 13:38:24 +0000
(13:38 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 15 May 2003 13:38:24 +0000
(13:38 +0000)
src/mesa/main/imports.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.h
b/src/mesa/main/imports.h
index e16e95cb0b80bd90e81274639bf227a8b5e9edcb..3dc793d7bab221e9a2e82b1b17def4d8906ae81a 100644
(file)
--- a/
src/mesa/main/imports.h
+++ b/
src/mesa/main/imports.h
@@
-383,8
+383,8
@@
static INLINE int ifloor(float f)
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;
}
#define IFLOOR(x) ifloor(x)