OSDN Git Service

99772983289105c87832d421b890b569e5c23234
[android-x86/external-mesa.git] / src / mesa / x86 / common_x86_asm.h
1 /* $Id: common_x86_asm.h,v 1.12 2005/07/16 00:56:20 ajax Exp $ */
2
3 /*
4  * Mesa 3-D graphics library
5  * Version:  3.5
6  *
7  * Copyright (C) 1999-2001  Brian Paul   All Rights Reserved.
8  *
9  * Permission is hereby granted, free of charge, to any person obtaining a
10  * copy of this software and associated documentation files (the "Software"),
11  * to deal in the Software without restriction, including without limitation
12  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13  * and/or sell copies of the Software, and to permit persons to whom the
14  * Software is furnished to do so, subject to the following conditions:
15  *
16  * The above copyright notice and this permission notice shall be included
17  * in all copies or substantial portions of the Software.
18  *
19  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
22  * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23  * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25  */
26
27 /*
28  * Check CPU capabilities & initialize optimized funtions for this particular
29  * processor.
30  *
31  * Written by Holger Waechtler <holger@akaflieg.extern.tu-berlin.de>
32  * Changed by Andre Werthmann <wertmann@cs.uni-potsdam.de> for using the
33  * new SSE functions
34  *
35  * Reimplemented by Gareth Hughes in a more
36  * future-proof manner, based on code in the Linux kernel.
37  */
38
39 #ifndef __COMMON_X86_ASM_H__
40 #define __COMMON_X86_ASM_H__
41
42 /* Do not reference mtypes.h from this file.
43  */
44 #include "common_x86_features.h"
45
46 #ifdef USE_X86_ASM
47 #include "x86.h"
48 #ifdef USE_3DNOW_ASM
49 #include "3dnow.h"
50 #endif
51 #ifdef USE_SSE_ASM
52 #include "sse.h"
53 #endif
54 #endif
55
56 extern int _mesa_x86_cpu_features;
57
58 extern void _mesa_init_all_x86_transform_asm( void );
59
60 #endif