[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/libbase utility.h
From: |
Markus Gothe |
Subject: |
[Gnash-commit] gnash/libbase utility.h |
Date: |
Mon, 24 Dec 2007 03:32:26 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Markus Gothe <nihilus> 07/12/24 03:32:26
Modified files:
libbase : utility.h
Log message:
More clever solution
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/utility.h?cvsroot=gnash&r1=1.38&r2=1.39
Patches:
Index: utility.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/utility.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- utility.h 24 Dec 2007 00:20:47 -0000 1.38
+++ utility.h 24 Dec 2007 03:32:26 -0000 1.39
@@ -95,7 +95,9 @@
//
// some misc handy math functions
//
-inline float infinite_to_fzero(float x) { return std::isfinite(x) ? x :
0.0f; }
+namespace std {
+inline float infinite_to_fzero(float x) { return isfinite(x) ? x : 0.0f; }
+}
inline int iabs(int i) { if (i < 0) return -i; else return i; }
/* fmax()/fmin() is C99 */
inline float fmax(float a, float b) { if (a < b) return b; else return a; }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/libbase utility.h,
Markus Gothe <=