arch.h File Reference

Contains architechure-specific definitions. More...

#include <boost/static_assert.hpp>
#include <values.h>
#include <limits>
#include "stddef.h"
#include <common/math/simd/SIMD.h>

Go to the source code of this file.

Defines

#define MILTON_DOUBLE_PRECISION   (1)
#define ALIGN_PRE(n)
#define ALIGN_POST(n)
#define glVertex3real_t   glVertex3d
#define glVertex3real_tv   glVertex3dv
#define glColor3real_t   glColor3d
#define glColor3real_tv   glColor3dv
#define glNormal3real_t   glNormal3d
#define glNormal3real_tv   glNormal3dv
#define glTexCoord2real_t   glTexCoord2d
#define glTexCoord2real_tv   glTexCoord2dv
#define glMultMatrixreal_t   glMultMatrixd
#define glLoadMatrixreal_t   glLoadMatrixd
#define INFINITY   (DBL_MAX)
#define EPSILON   (1e-7)
#define create_real(x)   (static_cast<real_t>(x))
#define M_PI_DIV_2   (M_PI_2)
#define M_INV_PI   (M_1_PI)
#define M_INV_2PI   (M_2_PI)
#define M_2PI   (2.0 * M_PI)
#define restrict   __restrict__

Typedefs

typedef signed int int32_t
typedef unsigned int uint32_t
typedef long long int64_t
typedef unsigned long long uint64_t
typedef double real_t
 consistent floating-point type used pervasively throughout Milton

Functions

 BOOST_STATIC_ASSERT (sizeof(unsigned int)==sizeof(int))
 BOOST_STATIC_ASSERT (std::numeric_limits< unsigned int >::digits==32)
 BOOST_STATIC_ASSERT (std::numeric_limits< unsigned long long >::digits==64)


Detailed Description

Contains architechure-specific definitions.

Author:
Travis Fischer (fisch0920@gmail.com)
Date:
Summer 2008

Definition in file arch.h.


Define Documentation

#define ALIGN_POST (  ) 

Definition at line 70 of file arch.h.

#define ALIGN_PRE (  ) 

Definition at line 69 of file arch.h.

#define create_real (  )     (static_cast<real_t>(x))

Definition at line 126 of file arch.h.

#define EPSILON   (1e-7)

Definition at line 114 of file arch.h.

#define glColor3real_t   glColor3d

Definition at line 104 of file arch.h.

#define glColor3real_tv   glColor3dv

Definition at line 105 of file arch.h.

#define glLoadMatrixreal_t   glLoadMatrixd

Definition at line 111 of file arch.h.

#define glMultMatrixreal_t   glMultMatrixd

Definition at line 110 of file arch.h.

#define glNormal3real_t   glNormal3d

Definition at line 106 of file arch.h.

#define glNormal3real_tv   glNormal3dv

Definition at line 107 of file arch.h.

#define glTexCoord2real_t   glTexCoord2d

Definition at line 108 of file arch.h.

#define glTexCoord2real_tv   glTexCoord2dv

Definition at line 109 of file arch.h.

#define glVertex3real_t   glVertex3d

Definition at line 102 of file arch.h.

#define glVertex3real_tv   glVertex3dv

Definition at line 103 of file arch.h.

#define INFINITY   (DBL_MAX)

Definition at line 113 of file arch.h.

#define M_2PI   (2.0 * M_PI)

Definition at line 131 of file arch.h.

#define M_INV_2PI   (M_2_PI)

Definition at line 130 of file arch.h.

#define M_INV_PI   (M_1_PI)

Definition at line 129 of file arch.h.

#define M_PI_DIV_2   (M_PI_2)

Definition at line 128 of file arch.h.

#define MILTON_DOUBLE_PRECISION   (1)

Definition at line 18 of file arch.h.

#define restrict   __restrict__

Definition at line 134 of file arch.h.


Typedef Documentation

typedef signed int int32_t

Definition at line 64 of file arch.h.

typedef long long int64_t

Definition at line 66 of file arch.h.

typedef double real_t

consistent floating-point type used pervasively throughout Milton

Definition at line 100 of file arch.h.

typedef unsigned int uint32_t

Definition at line 65 of file arch.h.

typedef unsigned long long uint64_t

Definition at line 67 of file arch.h.


Function Documentation

BOOST_STATIC_ASSERT ( std::numeric_limits< unsigned long long >::digits  = =64  ) 

BOOST_STATIC_ASSERT ( std::numeric_limits< unsigned int >::digits  = =32  ) 

BOOST_STATIC_ASSERT ( sizeof(unsigned int)  = =sizeof(int)  ) 


Generated on 28 Feb 2009 for Milton by doxygen 1.5.6