windows-nt/Source/XPSP1/NT/multimedia/opengl/server/inc/asm.h

213 lines
6.2 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef __glasm_h_
#define __glasm_h_
/*
** Copyright 1991, Silicon Graphics, Inc.
** All Rights Reserved.
**
** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
** the contents of this file may not be disclosed to third parties, copied or
** duplicated in any form, in whole or in part, without the prior written
** permission of Silicon Graphics, Inc.
**
** RESTRICTED RIGHTS LEGEND:
** Use, duplication or disclosure by the Government is subject to restrictions
** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
** rights reserved under the Copyright Laws of the United States.
**
*/
/*
** Add defines to this file when routines are written in assembler. This is
** so that the functions written in C will not be compiled. If the name is
** not defined, then the functions written in assembler will not be assembled
**
** The "GROUP" defines turn on a number of functions. See the code in soft
** for details.
**
** SGI code originally used __GL_USEASMCODE as one big switch.
** This method allows finer control over what is written in assembler.
*/
/* Define the following to disable all asm code and test the C code */
#ifndef __GL_ASM_DISABLE_ALL_ASM
#if defined(_X86_)
#define __GL_ASM_XFORM2
#define __GL_ASM_XFORM2BATCH
#define __GL_ASM_XFORM3
#define __GL_ASM_XFORM3BATCH
#define __GL_ASM_XFORM4
#define __GL_ASM_XFORM4BATCH
#define __GL_ASM_XFORM2_W
#define __GL_ASM_XFORM2_WBATCH
#define __GL_ASM_XFORM3_W
#define __GL_ASM_XFORM3_WBATCH
#define __GL_ASM_XFORM3x3
#define __GL_ASM_XFORM3x3BATCH
#define __GL_ASM_XFORM4_W
#define __GL_ASM_XFORM4_WBATCH
#define __GL_ASM_XFORM2_2DW
#define __GL_ASM_XFORM2_2DWBATCH
#define __GL_ASM_XFORM3_2DW
#define __GL_ASM_XFORM3_2DWBATCH
#define __GL_ASM_XFORM4_2DW
#define __GL_ASM_XFORM4_2DWBATCH
#define __GL_ASM_XFORM2_2DNRW
#define __GL_ASM_XFORM2_2DNRWBATCH
#define __GL_ASM_XFORM3_2DNRW
#define __GL_ASM_XFORM3_2DNRWBATCH
#define __GL_ASM_XFORM4_2DNRW
#define __GL_ASM_XFORM4_2DNRWBATCH
#define __GL_ASM_POLYARRAYPROPAGATESAMECOLOR
#define __GL_ASM_POLYARRAYFASTCALCRGBCOLOR
#define __GL_ASM_POLYARRAYZIPPYCALCRGBCOLOR
#define __GL_ASM_PACLIPCHECKFRUSTUM
#define __GL_ASM_PACLIPCHECKFRUSTUM2D
#define __GL_ASM_PACLIPCHECKALL
#define __GL_ASM_FAST_DLIST_PLAYBACK
#define __GL_ASM_GLCLTNORMAL3F
#define __GL_ASM_GLCLTNORMAL3FV
#define __GL_ASM_GLCLTTEXCOORD2F
#define __GL_ASM_GLCLTTEXCOORD2FV
#define __GL_ASM_GLCLTTEXCOORD3F
#define __GL_ASM_GLCLTTEXCOORD3FV
#define __GL_ASM_GLCLTVERTEX2F
#define __GL_ASM_GLCLTVERTEX2FV
#define __GL_ASM_GLCLTVERTEX3F
#define __GL_ASM_GLCLTVERTEX3FV
#define __GL_ASM_GLCLTCOLOR3F_INRGBA
#define __GL_ASM_GLCLTCOLOR3FV_INRGBA
#define __GL_ASM_GLCLTCOLOR4F_INRGBA
#define __GL_ASM_GLCLTCOLOR4FV_INRGBA
#define __GL_ASM_NORMALIZE
#define __GL_ASM_NORMAL_BATCH
#endif /* X86 */
#if defined(_MIPS_)
#define __GL_ASM_NORMALIZE
#define __GL_ASM_MULTMATRIX
#define __GL_ASM_CLAMPANDSCALECOLOR
#define __GL_ASM_XFORM2
#define __GL_ASM_XFORM3
#define __GL_ASM_XFORM4
#define __GL_ASM_XFORM2_W
#define __GL_ASM_XFORM3_W
#define __GL_ASM_XFORM4_W
#define __GL_ASM_XFORM2_2DW
#define __GL_ASM_XFORM3_2DW
#define __GL_ASM_XFORM4_2DW
#define __GL_ASM_XFORM2_2DNRW
#define __GL_ASM_XFORM3_2DNRW
#define __GL_ASM_XFORM4_2DNRW
#if 0
#define __GL_ASM_POINT
#define __GL_ASM_POINTFAST
#define __GL_ASM_OTHERLSTRIPVERTEXFAST
#define __GL_ASM_FASTCALCRGBCOLOR
#define __GL_ASM_SAVEN
#define __GL_ASM_SAVECI
#define __GL_ASM_SAVEC
#define __GL_ASM_SAVET
#define __GL_ASM_SAVECT
#define __GL_ASM_SAVENT
#define __GL_ASM_SAVECIALL
#define __GL_ASM_SAVECALL
#define __GL_ASM_VALIDATEVERTEX2
#define __GL_ASM_VALIDATEVERTEX3
#define __GL_ASM_VALIDATEVERTEX4
#endif
#endif /* MIPS */
#if defined(_PPC_)
#define __GL_ASM_NORMALIZE
#define __GL_ASM_MULTMATRIX
#define __GL_ASM_CLAMPANDSCALECOLOR
#define __GL_ASM_XFORM2
#define __GL_ASM_XFORM3
#define __GL_ASM_XFORM4
#define __GL_ASM_XFORM2_W
#define __GL_ASM_XFORM3_W
#define __GL_ASM_XFORM4_W
#define __GL_ASM_XFORM2_2DW
#define __GL_ASM_XFORM3_2DW
#define __GL_ASM_XFORM4_2DW
#define __GL_ASM_XFORM2_2DNRW
#define __GL_ASM_XFORM3_2DNRW
#define __GL_ASM_XFORM4_2DNRW
#if 0
#define __GL_ASM_POINT
#define __GL_ASM_POINTFAST
#define __GL_ASM_OTHERLSTRIPVERTEXFAST
#define __GL_ASM_FASTCALCRGBCOLOR
#define __GL_ASM_SAVEN
#define __GL_ASM_SAVECI
#define __GL_ASM_SAVEC
#define __GL_ASM_SAVET
#define __GL_ASM_SAVECT
#define __GL_ASM_SAVENT
#define __GL_ASM_SAVECIALL
#define __GL_ASM_SAVECALL
#define __GL_ASM_VALIDATEVERTEX2
#define __GL_ASM_VALIDATEVERTEX3
#define __GL_ASM_VALIDATEVERTEX4
#endif
#endif /* PPC */
#if defined(_ALPHA_)
//#define __GL_ASM_PACLIPCHECKFRUSTUM
//#define __GL_ASM_POLYARRAYFASTCALCRGBCOLOR
#define __GL_ASM_NORMALIZE
#define __GL_ASM_VECSUB4
//#define __GL_ASM_XFORM1
//#define __GL_ASM_XFORM1BATCH
//#define __GL_ASM_XFORM2
//#define __GL_ASM_XFORM2BATCH
//#define __GL_ASM_XFORM3
#define __GL_ASM_XFORM3BATCH
//#define __GL_ASM_XFORM4
#define __GL_ASM_XFORM4BATCH
//#define __GL_ASM_XFORM1_W
//#define __GL_ASM_XFORM1_WBATCH
//#define __GL_ASM_XFORM2_W
//#define __GL_ASM_XFORM2_WBATCH
//#define __GL_ASM_XFORM3_W
#define __GL_ASM_XFORM3_WBATCH
//#define __GL_ASM_XFORM3x3
#define __GL_ASM_XFORM3x3BATCH
//#define __GL_ASM_XFORM4_W
#define __GL_ASM_XFORM4_WBATCH
//#define __GL_ASM_XFORM1_2DW
//#define __GL_ASM_XFORM1_2DWBATCH
//#define __GL_ASM_XFORM2_2DW
//#define __GL_ASM_XFORM2_2DWBATCH
//#define __GL_ASM_XFORM3_2DW
#define __GL_ASM_XFORM3_2DWBATCH
//#define __GL_ASM_XFORM4_2DW
//#define __GL_ASM_XFORM4_2DWBATCH
//#define __GL_ASM_XFORM1_2DNRW
//#define __GL_ASM_XFORM1_2DNRWBATCH
//#define __GL_ASM_XFORM2_2DNRW
//#define __GL_ASM_XFORM2_2DNRWBATCH
//#define __GL_ASM_XFORM3_2DNRW
#define __GL_ASM_XFORM3_2DNRWBATCH
//#define __GL_ASM_XFORM4_2DNRW
//#define __GL_ASM_XFORM4_2DNRWBATCH
#if 0
#define __GL_ASM_SAVEN
#define __GL_ASM_SAVECI
#define __GL_ASM_SAVEC
#define __GL_ASM_SAVET
#define __GL_ASM_SAVECT
#define __GL_ASM_SAVENT
#define __GL_ASM_SAVECIALL
#define __GL_ASM_SAVECALL
#endif
#endif /* ALPHA */
#endif /* __GL_ASM_DISABLE_ALL_ASM */
#endif /* __glasm_h_ */