/**
 * \file fixed_point.h
 *
 *
 *
 * \author Ethan Burns
 * \date 2009-01-16
 */

#include "stdint.h"

#include <limits>

/* The type of a fixed point value.  This should never be larger than
 * the size of the type for the 'value' field in the AtomicInt
 * class. */
typedef unsigned long fp_type;

#define fp_sqrt2 1414
#define fp_one 1000
#define fp_infinity (numeric_limits<fp_type>::max())

/**
 * \file fixed_point.h
 *
 *
 *
 * \author Ethan Burns
 * \date 2009-01-16
 */

#include "stdint.h"

#include <limits>

/* The type of a fixed point value.  This should never be larger than
 * the size of the type for the 'value' field in the AtomicInt
 * class. */
typedef unsigned long fp_type;

#define fp_sqrt2 14142
#define fp_one 10000
#define fp_infinity (numeric_limits<fp_type>::max())

--- 
+++ 
@@ -16,6 +16,6 @@
  * class. */
 typedef unsigned long fp_type;
 
-#define fp_sqrt2 14142
-#define fp_one 10000
+#define fp_sqrt2 1414
+#define fp_one 1000
 #define fp_infinity (numeric_limits<fp_type>::max())
Use 3 decimal places, the sun uses 32-bit fp_type which chokes with 4.
