diff src/video/math_private.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents 7a610f25c12f
children 2a3ec308d995
line wrap: on
line diff
--- a/src/video/math_private.h	Sun May 21 17:27:13 2006 +0000
+++ b/src/video/math_private.h	Sun May 28 13:04:16 2006 +0000
@@ -20,7 +20,7 @@
 #include "SDL_name.h"
 #include "SDL_endian.h"
 
-#define huge		really_big /* huge is a reserved keyword in VC++ 6.0 */
+#define huge		really_big      /* huge is a reserved keyword in VC++ 6.0 */
 #define u_int32_t	uint32_t
 
 /* The original fdlibm code used statements like:
@@ -48,24 +48,24 @@
 
 typedef union
 {
-  double value;
-  struct
-  {
-    u_int32_t msw;
-    u_int32_t lsw;
-  } parts;
+    double value;
+    struct
+    {
+        u_int32_t msw;
+        u_int32_t lsw;
+    } parts;
 } ieee_double_shape_type;
 
 #else
 
 typedef union
 {
-  double value;
-  struct
-  {
-    u_int32_t lsw;
-    u_int32_t msw;
-  } parts;
+    double value;
+    struct
+    {
+        u_int32_t lsw;
+        u_int32_t msw;
+    } parts;
 } ieee_double_shape_type;
 
 #endif
@@ -133,8 +133,8 @@
 
 typedef union
 {
-  float value;
-  u_int32_t word;
+    float value;
+    u_int32_t word;
 } ieee_float_shape_type;
 
 /* Get a 32 bit int from a float.  */
@@ -161,13 +161,10 @@
 #else
 static double
 #endif
-zero    =  0.0,
-one	=  1.0,
-two	=  2.0,
-two53	=  9007199254740992.0,	/* 0x43400000, 0x00000000 */
-two54   =  1.80143985094819840000e+16, /* 0x43500000, 0x00000000 */
-twom54  =  5.55111512312578270212e-17, /* 0x3C900000, 0x00000000 */
-huge   = 1.0e+300,
-tiny   = 1.0e-300;
+  zero = 0.0, one = 1.0, two = 2.0, two53 = 9007199254740992.0, /* 0x43400000, 0x00000000 */
+    two54 = 1.80143985094819840000e+16, /* 0x43500000, 0x00000000 */
+    twom54 = 5.55111512312578270212e-17,        /* 0x3C900000, 0x00000000 */
+    huge = 1.0e+300, tiny = 1.0e-300;
 
 #endif /* _MATH_PRIVATE_H_ */
+/* vi: set ts=4 sw=4 expandtab: */