summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-06-25 21:43:30 -0700
committerMatt Turner <[email protected]>2015-08-04 10:32:39 -0700
commit3c050222b0d5b47c885ca72f3c7af22c0d28b5ad (patch)
tree3d483174d72b42664ccdc8bbc0f764b8aef5efc0 /src/mesa
parent996349cb190154ebdc8cc9f23e5f8f9aabbd6b4d (diff)
mesa: Use _mesa_lroundevenf() in some more places.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/imports.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index 68c7316575c..350e6752c8b 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -369,7 +369,7 @@ _mesa_float_to_half(float val)
* or normal.
*/
e = 0;
- m = (int) _mesa_roundevenf((1 << 24) * fabsf(fi.f));
+ m = _mesa_lroundevenf((1 << 24) * fabsf(fi.f));
}
else if (new_exp > 15) {
/* map this value to infinity */
@@ -383,7 +383,7 @@ _mesa_float_to_half(float val)
* either normal or infinite.
*/
e = new_exp + 15;
- m = (int) _mesa_roundevenf(flt_m / (float) (1 << 13));
+ m = _mesa_lroundevenf(flt_m / (float) (1 << 13));
}
}