Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

212 lines
6.2 KiB

  1. #ifndef __glasm_h_
  2. #define __glasm_h_
  3. /*
  4. ** Copyright 1991, Silicon Graphics, Inc.
  5. ** All Rights Reserved.
  6. **
  7. ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  8. ** the contents of this file may not be disclosed to third parties, copied or
  9. ** duplicated in any form, in whole or in part, without the prior written
  10. ** permission of Silicon Graphics, Inc.
  11. **
  12. ** RESTRICTED RIGHTS LEGEND:
  13. ** Use, duplication or disclosure by the Government is subject to restrictions
  14. ** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  15. ** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  16. ** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  17. ** rights reserved under the Copyright Laws of the United States.
  18. **
  19. */
  20. /*
  21. ** Add defines to this file when routines are written in assembler. This is
  22. ** so that the functions written in C will not be compiled. If the name is
  23. ** not defined, then the functions written in assembler will not be assembled
  24. **
  25. ** The "GROUP" defines turn on a number of functions. See the code in soft
  26. ** for details.
  27. **
  28. ** SGI code originally used __GL_USEASMCODE as one big switch.
  29. ** This method allows finer control over what is written in assembler.
  30. */
  31. /* Define the following to disable all asm code and test the C code */
  32. #ifndef __GL_ASM_DISABLE_ALL_ASM
  33. #if defined(_X86_)
  34. #define __GL_ASM_XFORM2
  35. #define __GL_ASM_XFORM2BATCH
  36. #define __GL_ASM_XFORM3
  37. #define __GL_ASM_XFORM3BATCH
  38. #define __GL_ASM_XFORM4
  39. #define __GL_ASM_XFORM4BATCH
  40. #define __GL_ASM_XFORM2_W
  41. #define __GL_ASM_XFORM2_WBATCH
  42. #define __GL_ASM_XFORM3_W
  43. #define __GL_ASM_XFORM3_WBATCH
  44. #define __GL_ASM_XFORM3x3
  45. #define __GL_ASM_XFORM3x3BATCH
  46. #define __GL_ASM_XFORM4_W
  47. #define __GL_ASM_XFORM4_WBATCH
  48. #define __GL_ASM_XFORM2_2DW
  49. #define __GL_ASM_XFORM2_2DWBATCH
  50. #define __GL_ASM_XFORM3_2DW
  51. #define __GL_ASM_XFORM3_2DWBATCH
  52. #define __GL_ASM_XFORM4_2DW
  53. #define __GL_ASM_XFORM4_2DWBATCH
  54. #define __GL_ASM_XFORM2_2DNRW
  55. #define __GL_ASM_XFORM2_2DNRWBATCH
  56. #define __GL_ASM_XFORM3_2DNRW
  57. #define __GL_ASM_XFORM3_2DNRWBATCH
  58. #define __GL_ASM_XFORM4_2DNRW
  59. #define __GL_ASM_XFORM4_2DNRWBATCH
  60. #define __GL_ASM_POLYARRAYPROPAGATESAMECOLOR
  61. #define __GL_ASM_POLYARRAYFASTCALCRGBCOLOR
  62. #define __GL_ASM_POLYARRAYZIPPYCALCRGBCOLOR
  63. #define __GL_ASM_PACLIPCHECKFRUSTUM
  64. #define __GL_ASM_PACLIPCHECKFRUSTUM2D
  65. #define __GL_ASM_PACLIPCHECKALL
  66. #define __GL_ASM_FAST_DLIST_PLAYBACK
  67. #define __GL_ASM_GLCLTNORMAL3F
  68. #define __GL_ASM_GLCLTNORMAL3FV
  69. #define __GL_ASM_GLCLTTEXCOORD2F
  70. #define __GL_ASM_GLCLTTEXCOORD2FV
  71. #define __GL_ASM_GLCLTTEXCOORD3F
  72. #define __GL_ASM_GLCLTTEXCOORD3FV
  73. #define __GL_ASM_GLCLTVERTEX2F
  74. #define __GL_ASM_GLCLTVERTEX2FV
  75. #define __GL_ASM_GLCLTVERTEX3F
  76. #define __GL_ASM_GLCLTVERTEX3FV
  77. #define __GL_ASM_GLCLTCOLOR3F_INRGBA
  78. #define __GL_ASM_GLCLTCOLOR3FV_INRGBA
  79. #define __GL_ASM_GLCLTCOLOR4F_INRGBA
  80. #define __GL_ASM_GLCLTCOLOR4FV_INRGBA
  81. #define __GL_ASM_NORMALIZE
  82. #define __GL_ASM_NORMAL_BATCH
  83. #endif /* X86 */
  84. #if defined(_MIPS_)
  85. #define __GL_ASM_NORMALIZE
  86. #define __GL_ASM_MULTMATRIX
  87. #define __GL_ASM_CLAMPANDSCALECOLOR
  88. #define __GL_ASM_XFORM2
  89. #define __GL_ASM_XFORM3
  90. #define __GL_ASM_XFORM4
  91. #define __GL_ASM_XFORM2_W
  92. #define __GL_ASM_XFORM3_W
  93. #define __GL_ASM_XFORM4_W
  94. #define __GL_ASM_XFORM2_2DW
  95. #define __GL_ASM_XFORM3_2DW
  96. #define __GL_ASM_XFORM4_2DW
  97. #define __GL_ASM_XFORM2_2DNRW
  98. #define __GL_ASM_XFORM3_2DNRW
  99. #define __GL_ASM_XFORM4_2DNRW
  100. #if 0
  101. #define __GL_ASM_POINT
  102. #define __GL_ASM_POINTFAST
  103. #define __GL_ASM_OTHERLSTRIPVERTEXFAST
  104. #define __GL_ASM_FASTCALCRGBCOLOR
  105. #define __GL_ASM_SAVEN
  106. #define __GL_ASM_SAVECI
  107. #define __GL_ASM_SAVEC
  108. #define __GL_ASM_SAVET
  109. #define __GL_ASM_SAVECT
  110. #define __GL_ASM_SAVENT
  111. #define __GL_ASM_SAVECIALL
  112. #define __GL_ASM_SAVECALL
  113. #define __GL_ASM_VALIDATEVERTEX2
  114. #define __GL_ASM_VALIDATEVERTEX3
  115. #define __GL_ASM_VALIDATEVERTEX4
  116. #endif
  117. #endif /* MIPS */
  118. #if defined(_PPC_)
  119. #define __GL_ASM_NORMALIZE
  120. #define __GL_ASM_MULTMATRIX
  121. #define __GL_ASM_CLAMPANDSCALECOLOR
  122. #define __GL_ASM_XFORM2
  123. #define __GL_ASM_XFORM3
  124. #define __GL_ASM_XFORM4
  125. #define __GL_ASM_XFORM2_W
  126. #define __GL_ASM_XFORM3_W
  127. #define __GL_ASM_XFORM4_W
  128. #define __GL_ASM_XFORM2_2DW
  129. #define __GL_ASM_XFORM3_2DW
  130. #define __GL_ASM_XFORM4_2DW
  131. #define __GL_ASM_XFORM2_2DNRW
  132. #define __GL_ASM_XFORM3_2DNRW
  133. #define __GL_ASM_XFORM4_2DNRW
  134. #if 0
  135. #define __GL_ASM_POINT
  136. #define __GL_ASM_POINTFAST
  137. #define __GL_ASM_OTHERLSTRIPVERTEXFAST
  138. #define __GL_ASM_FASTCALCRGBCOLOR
  139. #define __GL_ASM_SAVEN
  140. #define __GL_ASM_SAVECI
  141. #define __GL_ASM_SAVEC
  142. #define __GL_ASM_SAVET
  143. #define __GL_ASM_SAVECT
  144. #define __GL_ASM_SAVENT
  145. #define __GL_ASM_SAVECIALL
  146. #define __GL_ASM_SAVECALL
  147. #define __GL_ASM_VALIDATEVERTEX2
  148. #define __GL_ASM_VALIDATEVERTEX3
  149. #define __GL_ASM_VALIDATEVERTEX4
  150. #endif
  151. #endif /* PPC */
  152. #if defined(_ALPHA_)
  153. //#define __GL_ASM_PACLIPCHECKFRUSTUM
  154. //#define __GL_ASM_POLYARRAYFASTCALCRGBCOLOR
  155. #define __GL_ASM_NORMALIZE
  156. #define __GL_ASM_VECSUB4
  157. //#define __GL_ASM_XFORM1
  158. //#define __GL_ASM_XFORM1BATCH
  159. //#define __GL_ASM_XFORM2
  160. //#define __GL_ASM_XFORM2BATCH
  161. //#define __GL_ASM_XFORM3
  162. #define __GL_ASM_XFORM3BATCH
  163. //#define __GL_ASM_XFORM4
  164. #define __GL_ASM_XFORM4BATCH
  165. //#define __GL_ASM_XFORM1_W
  166. //#define __GL_ASM_XFORM1_WBATCH
  167. //#define __GL_ASM_XFORM2_W
  168. //#define __GL_ASM_XFORM2_WBATCH
  169. //#define __GL_ASM_XFORM3_W
  170. #define __GL_ASM_XFORM3_WBATCH
  171. //#define __GL_ASM_XFORM3x3
  172. #define __GL_ASM_XFORM3x3BATCH
  173. //#define __GL_ASM_XFORM4_W
  174. #define __GL_ASM_XFORM4_WBATCH
  175. //#define __GL_ASM_XFORM1_2DW
  176. //#define __GL_ASM_XFORM1_2DWBATCH
  177. //#define __GL_ASM_XFORM2_2DW
  178. //#define __GL_ASM_XFORM2_2DWBATCH
  179. //#define __GL_ASM_XFORM3_2DW
  180. #define __GL_ASM_XFORM3_2DWBATCH
  181. //#define __GL_ASM_XFORM4_2DW
  182. //#define __GL_ASM_XFORM4_2DWBATCH
  183. //#define __GL_ASM_XFORM1_2DNRW
  184. //#define __GL_ASM_XFORM1_2DNRWBATCH
  185. //#define __GL_ASM_XFORM2_2DNRW
  186. //#define __GL_ASM_XFORM2_2DNRWBATCH
  187. //#define __GL_ASM_XFORM3_2DNRW
  188. #define __GL_ASM_XFORM3_2DNRWBATCH
  189. //#define __GL_ASM_XFORM4_2DNRW
  190. //#define __GL_ASM_XFORM4_2DNRWBATCH
  191. #if 0
  192. #define __GL_ASM_SAVEN
  193. #define __GL_ASM_SAVECI
  194. #define __GL_ASM_SAVEC
  195. #define __GL_ASM_SAVET
  196. #define __GL_ASM_SAVECT
  197. #define __GL_ASM_SAVENT
  198. #define __GL_ASM_SAVECIALL
  199. #define __GL_ASM_SAVECALL
  200. #endif
  201. #endif /* ALPHA */
  202. #endif /* __GL_ASM_DISABLE_ALL_ASM */
  203. #endif /* __glasm_h_ */