x86-arch.h 670 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*

 This code was written as part of the CMU Common Lisp project and has
 been placed in the public domain.

*/
#ifndef __X86_ARCH_H

extern int arch_support_sse2(void);
extern boolean os_support_sse2(void);

/*
 * Define macro to allocate a local array of the appropriate size
 * where the fpu state can be stored.
 */

#define FPU_STATE_SIZE 27

/* 
Raymond Toy's avatar
Raymond Toy committed
20
 * Need 512 byte area, aligned on a 16-byte boundary.
21
 */
22
#define SSE_STATE_SIZE 512
23
24
25

/*
 * Just use the SSE size for both x87 and sse2 since the SSE size is
Raymond Toy's avatar
Raymond Toy committed
26
 * enough for either.  Make sure it's on a 16-byte boundary.
27
 */
28
#define FPU_STATE(name)    u_int8_t name[SSE_STATE_SIZE] __attribute__((aligned(16)))
29
30

#endif