Mesa (master): mesa/main: remove unused IROUNDD

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 21 20:52:39 UTC 2020


Module: Mesa
Branch: master
Commit: df3ce8fb77e718ee4371fe7ca9f4a7c889319efb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=df3ce8fb77e718ee4371fe7ca9f4a7c889319efb

Author: Dylan Baker <dylan at pnwbakers.com>
Date:   Fri Sep  7 15:04:40 2018 -0700

mesa/main: remove unused IROUNDD

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>

---

 src/util/imports.h | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/util/imports.h b/src/util/imports.h
index f7563dcb405..3a73275ffd6 100644
--- a/src/util/imports.h
+++ b/src/util/imports.h
@@ -103,14 +103,6 @@ static inline int IROUND(float f)
    return (int) ((f >= 0.0F) ? (f + 0.5F) : (f - 0.5F));
 }
 
-/**
- * Convert double to int by rounding to nearest integer, away from zero.
- */
-static inline int IROUNDD(double d)
-{
-   return (int) ((d >= 0.0) ? (d + 0.5) : (d - 0.5));
-}
-
 /**
  * Convert float to int64 by rounding to nearest integer.
  */



More information about the mesa-commit mailing list