source: trunk/src/opengl/mesa/common_x86asm.h

Last change on this file was 3582, checked in by jeroen, 25 years ago

* empty log message *

File size: 2.1 KB
Line 
1/* $Id: common_x86asm.h,v 1.2 2000-05-21 20:20:44 jeroen Exp $ */
2
3/*
4 * Mesa 3-D graphics library
5 * Version: 3.1
6 *
7 * Copyright (C) 1999 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/*
29 * Check CPU capabilities & initialize optimized funtions for this particular
30 * processor.
31 *
32 * Written by Holger Waechtler <holger@akaflieg.extern.tu-berlin.de>
33 * Changed by Andre Werthmann <wertmann@cs.uni-potsdam.de> for using the
34 * new Katmai functions
35 */
36#ifndef _common_3dnow_h
37#define _common_3dnow_h
38
39#define GL_CPU_GenuineIntel 1
40#define GL_CPU_MMX 2
41#define GL_CPU_3Dnow 4
42#define GL_CPU_Katmai 8 /* set if the katmai-instructions are available */
43#define GL_CPU_AnyX86 16 /* set if x86 asm allowed */
44
45#ifdef HAVE_CONFIG_H
46#include "conf.h"
47#endif
48
49#ifdef USE_X86_ASM
50#include "x86.h"
51#ifdef USE_3DNOW_ASM
52#include "3dnow.h"
53#endif
54#ifdef USE_KATMAI_ASM
55#include "katmai.h"
56#endif
57#endif
58
59extern int gl_x86_cpu_features;
60extern void gl_init_all_x86_asm (void);
61extern int gl_identify_x86_cpu_features(void);
62
63#endif
Note: See TracBrowser for help on using the repository browser.