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.
- Date:
- Summer 2008
Definition in file arch.h.
Define Documentation
Typedef Documentation
| typedef double real_t |
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
1.5.6