include/SSEPlus_base.h File Reference

#include "SSEPlus_platform.h"
#include <xmmintrin.h>
#include <emmintrin.h>

Go to the source code of this file.

Data Structures

union  ssp_m128
union  ssp_m64

Defines

#define SSP_FROUND_TO_NEAREST_INT   0x00
#define SSP_FROUND_TO_NEG_INF   0x01
#define SSP_FROUND_TO_POS_INF   0x02
#define SSP_FROUND_TO_ZERO   0x03
#define SSP_FROUND_CUR_DIRECTION   0x04
#define SSP_FROUND_RAISE_EXC   0x00
#define SSP_FROUND_NO_EXC   0x08
#define STRING2(x)   #x
#define STRING(x)   STRING2(x)
#define WARN()   __FILE__"("STRING(__LINE__)") : NOTE "
#define CASE_2(fn,...)
#define CASE_4(fn,...)
#define CASE_4_NR(fn,...)
#define CASE_8(fn,...)
#define CASE_16(fn,...)
#define CASE_32(fn,...)
#define CASE_128(fn,...)
#define CASE_64(fn,...)
#define CASE_256(fn,...)

Typedefs

typedef signed char ssp_s8
typedef unsigned char ssp_u8
typedef signed short ssp_s16
typedef unsigned short ssp_u16
typedef signed int ssp_s32
typedef unsigned int ssp_u32
typedef float ssp_f32
typedef double ssp_f64
typedef signed long long ssp_s64
typedef unsigned long long ssp_u64

Variables

ssp_u16 MAX_U16 = 65535
static const float SSP_F32_ALLOWANCE = 0.0001f
static const double SSP_F64_ALLOWANCE = 0.0001


Define Documentation

#define CASE_128 ( fn,
...   ) 

Definition at line 175 of file SSEPlus_base.h.

#define CASE_16 ( fn,
...   ) 

Value:

case 0x0: return fn( __VA_ARGS__, 0x0 );    \
case 0x1: return fn( __VA_ARGS__, 0x1 );    \
case 0x2: return fn( __VA_ARGS__, 0x2 );    \
case 0x3: return fn( __VA_ARGS__, 0x3 );    \
case 0x4: return fn( __VA_ARGS__, 0x4 );    \
case 0x5: return fn( __VA_ARGS__, 0x5 );    \
case 0x6: return fn( __VA_ARGS__, 0x6 );    \
case 0x7: return fn( __VA_ARGS__, 0x7 );    \
case 0x8: return fn( __VA_ARGS__, 0x8 );    \
case 0x9: return fn( __VA_ARGS__, 0x9 );    \
case 0xA: return fn( __VA_ARGS__, 0xA );    \
case 0xB: return fn( __VA_ARGS__, 0xB );    \
case 0xC: return fn( __VA_ARGS__, 0xC );    \
case 0xD: return fn( __VA_ARGS__, 0xD );    \
case 0xE: return fn( __VA_ARGS__, 0xE );    \
default: return fn( __VA_ARGS__, 0xF );

Definition at line 123 of file SSEPlus_base.h.

#define CASE_2 ( fn,
...   ) 

Value:

case 0x0: return fn( __VA_ARGS__, 0x0 );    \
default:  return fn( __VA_ARGS__, 0x1 );

Definition at line 97 of file SSEPlus_base.h.

#define CASE_256 ( fn,
...   ) 

Definition at line 371 of file SSEPlus_base.h.

#define CASE_32 ( fn,
...   ) 

Definition at line 141 of file SSEPlus_base.h.

#define CASE_4 ( fn,
...   ) 

Value:

case 0x0: return fn( __VA_ARGS__, 0x0 );    \
case 0x1: return fn( __VA_ARGS__, 0x1 );    \
case 0x2: return fn( __VA_ARGS__, 0x2 );    \
default: return fn( __VA_ARGS__, 0x3 );

Definition at line 101 of file SSEPlus_base.h.

#define CASE_4_NR ( fn,
...   ) 

Value:

case 0x0: fn( __VA_ARGS__, 0x0 );    \
case 0x1: fn( __VA_ARGS__, 0x1 );    \
case 0x2: fn( __VA_ARGS__, 0x2 );    \
default: fn( __VA_ARGS__, 0x3 );

Definition at line 107 of file SSEPlus_base.h.

#define CASE_64 ( fn,
...   ) 

Definition at line 305 of file SSEPlus_base.h.

#define CASE_8 ( fn,
...   ) 

Value:

case 0x0: return fn( __VA_ARGS__, 0x0 );    \
case 0x1: return fn( __VA_ARGS__, 0x1 );    \
case 0x2: return fn( __VA_ARGS__, 0x2 );    \
case 0x3: return fn( __VA_ARGS__, 0x3 );    \
case 0x4: return fn( __VA_ARGS__, 0x4 );    \
case 0x5: return fn( __VA_ARGS__, 0x5 );    \
case 0x6: return fn( __VA_ARGS__, 0x6 );    \
default: return fn( __VA_ARGS__, 0x7 );

Definition at line 113 of file SSEPlus_base.h.

#define SSP_FROUND_CUR_DIRECTION   0x04

Definition at line 72 of file SSEPlus_base.h.

#define SSP_FROUND_NO_EXC   0x08

Definition at line 75 of file SSEPlus_base.h.

#define SSP_FROUND_RAISE_EXC   0x00

Definition at line 74 of file SSEPlus_base.h.

#define SSP_FROUND_TO_NEAREST_INT   0x00

Definition at line 68 of file SSEPlus_base.h.

#define SSP_FROUND_TO_NEG_INF   0x01

Definition at line 69 of file SSEPlus_base.h.

#define SSP_FROUND_TO_POS_INF   0x02

Definition at line 70 of file SSEPlus_base.h.

#define SSP_FROUND_TO_ZERO   0x03

Definition at line 71 of file SSEPlus_base.h.

#define STRING (  )     STRING2(x)

Definition at line 88 of file SSEPlus_base.h.

#define STRING2 (  )     #x

Definition at line 87 of file SSEPlus_base.h.

 
#define WARN (  )     __FILE__"("STRING(__LINE__)") : NOTE "

Definition at line 89 of file SSEPlus_base.h.


Typedef Documentation

typedef float ssp_f32

Definition at line 26 of file SSEPlus_base.h.

typedef double ssp_f64

Definition at line 27 of file SSEPlus_base.h.

typedef signed short ssp_s16

Definition at line 20 of file SSEPlus_base.h.

typedef signed int ssp_s32

Definition at line 23 of file SSEPlus_base.h.

typedef signed long long ssp_s64

Definition at line 29 of file SSEPlus_base.h.

typedef signed char ssp_s8

Definition at line 17 of file SSEPlus_base.h.

typedef unsigned short ssp_u16

Definition at line 21 of file SSEPlus_base.h.

typedef unsigned int ssp_u32

Definition at line 24 of file SSEPlus_base.h.

typedef unsigned long long ssp_u64

Definition at line 30 of file SSEPlus_base.h.

typedef unsigned char ssp_u8

Definition at line 18 of file SSEPlus_base.h.


Variable Documentation

ssp_u16 MAX_U16 = 65535

Definition at line 63 of file SSEPlus_base.h.

const float SSP_F32_ALLOWANCE = 0.0001f [static]

Definition at line 80 of file SSEPlus_base.h.

const double SSP_F64_ALLOWANCE = 0.0001 [static]

Definition at line 81 of file SSEPlus_base.h.


Generated on Wed May 21 13:44:11 2008 for "SSEPlus" by  doxygen 1.5.4