-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlite.h
110 lines (88 loc) · 1.7 KB
/
lite.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// Author: Hong Hung Sept 2006-2012
struct _float4
{
float x,y,z,w;
};
typedef struct _float4 float4;
struct _float3
{
float x,y,z;
};
typedef struct _float3 float3;
struct _float2
{
float x,y;
};
typedef struct _float2 float2;
struct _int4
{
int x,y,z,w;
};
typedef struct _int4 int4;
struct _int3
{
int x,y,z;
};
typedef struct _int3 int3;
struct _int2
{
int x,y;
};
typedef struct _int2 int2;
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __COMMON__
#define __COMMON__
/******************************************************************/
#define TRUE 1
#define FALSE 0
#define ERROR -1
#define STDIN_FILENAME "stdin"
#define STDOUT_FILENAME "stdout"
#define STDERR_FILENAME "stderr"
/******************************************************************/
#include <ctype.h>
#include <malloc.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
/******************************************************************/
#include "data_structures.h"
#include "defines.h"
#include "error_handlers.h"
#ifndef __IMMINTRIN_H
#define __IMMINTRIN_H
#ifdef __MMX__
#include <mmintrin.h>
#endif
#ifdef __SSE__
#include <xmmintrin.h>
#endif
#ifdef __SSE2__
#include <emmintrin.h>
#endif
#ifdef __SSE3__
#include <pmmintrin.h>
#endif
#ifdef __SSSE3__
#include <tmmintrin.h>
#endif
#if defined (__SSE4_2__) || defined (__SSE4_1__)
#include <smmintrin.h>
#endif
#if defined (__AES__) || defined (__PCLMUL__)
#include <wmmintrin.h>
#endif
#ifdef __AVX__
#include <immintrin.h>
#endif
#endif /* __IMMINTRIN_H */
/******************************************************************/
#endif /* __COMMON__ */
#ifdef __cplusplus
}
#endif