g_renderswap.c 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664
  1. /*
  2. * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
  3. * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
  4. *
  5. * Permission is hereby granted, free of charge, to any person obtaining a
  6. * copy of this software and associated documentation files (the "Software"),
  7. * to deal in the Software without restriction, including without limitation
  8. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  9. * and/or sell copies of the Software, and to permit persons to whom the
  10. * Software is furnished to do so, subject to the following conditions:
  11. *
  12. * The above copyright notice including the dates of first publication and
  13. * either this permission notice or a reference to
  14. * http://oss.sgi.com/projects/FreeB/
  15. * shall be included in all copies or substantial portions of the Software.
  16. *
  17. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  18. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  20. * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  21. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
  22. * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  23. * SOFTWARE.
  24. *
  25. * Except as contained in this notice, the name of Silicon Graphics, Inc.
  26. * shall not be used in advertising or otherwise to promote the sale, use or
  27. * other dealings in this Software without prior written authorization from
  28. * Silicon Graphics, Inc.
  29. */
  30. #include "glxserver.h"
  31. #include "glxext.h"
  32. #include "g_disptab.h"
  33. #include "unpack.h"
  34. #include "compsize.h"
  35. void
  36. __glXDispSwap_CallList(GLbyte * pc)
  37. {
  38. __GLX_DECLARE_SWAP_VARIABLES;
  39. __GLX_SWAP_INT(pc + 0);
  40. }
  41. void
  42. __glXDispSwap_ListBase(GLbyte * pc)
  43. {
  44. __GLX_DECLARE_SWAP_VARIABLES;
  45. __GLX_SWAP_INT(pc + 0);
  46. }
  47. void
  48. __glXDispSwap_Begin(GLbyte * pc)
  49. {
  50. __GLX_DECLARE_SWAP_VARIABLES;
  51. __GLX_SWAP_INT(pc + 0);
  52. }
  53. void
  54. __glXDispSwap_Color3bv(GLbyte * pc)
  55. {
  56. }
  57. void
  58. __glXDispSwap_Color3dv(GLbyte * pc)
  59. {
  60. __GLX_DECLARE_SWAP_VARIABLES;
  61. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  62. #ifdef __GLX_ALIGN64
  63. if ((unsigned long) (pc) & 7) {
  64. __GLX_MEM_COPY(pc - 4, pc, 24);
  65. pc -= 4;
  66. }
  67. #endif
  68. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 3);
  69. }
  70. void
  71. __glXDispSwap_Color3fv(GLbyte * pc)
  72. {
  73. __GLX_DECLARE_SWAP_VARIABLES;
  74. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  75. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 3);
  76. }
  77. void
  78. __glXDispSwap_Color3iv(GLbyte * pc)
  79. {
  80. __GLX_DECLARE_SWAP_VARIABLES;
  81. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  82. __GLX_SWAP_INT_ARRAY(pc + 0, 3);
  83. }
  84. void
  85. __glXDispSwap_Color3sv(GLbyte * pc)
  86. {
  87. __GLX_DECLARE_SWAP_VARIABLES;
  88. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  89. __GLX_SWAP_SHORT_ARRAY(pc + 0, 3);
  90. }
  91. void
  92. __glXDispSwap_Color3ubv(GLbyte * pc)
  93. {
  94. }
  95. void
  96. __glXDispSwap_Color3uiv(GLbyte * pc)
  97. {
  98. __GLX_DECLARE_SWAP_VARIABLES;
  99. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  100. __GLX_SWAP_INT_ARRAY(pc + 0, 3);
  101. }
  102. void
  103. __glXDispSwap_Color3usv(GLbyte * pc)
  104. {
  105. __GLX_DECLARE_SWAP_VARIABLES;
  106. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  107. __GLX_SWAP_SHORT_ARRAY(pc + 0, 3);
  108. }
  109. void
  110. __glXDispSwap_Color4bv(GLbyte * pc)
  111. {
  112. }
  113. void
  114. __glXDispSwap_Color4dv(GLbyte * pc)
  115. {
  116. __GLX_DECLARE_SWAP_VARIABLES;
  117. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  118. #ifdef __GLX_ALIGN64
  119. if ((unsigned long) (pc) & 7) {
  120. __GLX_MEM_COPY(pc - 4, pc, 32);
  121. pc -= 4;
  122. }
  123. #endif
  124. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 4);
  125. }
  126. void
  127. __glXDispSwap_Color4fv(GLbyte * pc)
  128. {
  129. __GLX_DECLARE_SWAP_VARIABLES;
  130. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  131. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 4);
  132. }
  133. void
  134. __glXDispSwap_Color4iv(GLbyte * pc)
  135. {
  136. __GLX_DECLARE_SWAP_VARIABLES;
  137. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  138. __GLX_SWAP_INT_ARRAY(pc + 0, 4);
  139. }
  140. void
  141. __glXDispSwap_Color4sv(GLbyte * pc)
  142. {
  143. __GLX_DECLARE_SWAP_VARIABLES;
  144. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  145. __GLX_SWAP_SHORT_ARRAY(pc + 0, 4);
  146. }
  147. void
  148. __glXDispSwap_Color4ubv(GLbyte * pc)
  149. {
  150. }
  151. void
  152. __glXDispSwap_Color4uiv(GLbyte * pc)
  153. {
  154. __GLX_DECLARE_SWAP_VARIABLES;
  155. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  156. __GLX_SWAP_INT_ARRAY(pc + 0, 4);
  157. }
  158. void
  159. __glXDispSwap_Color4usv(GLbyte * pc)
  160. {
  161. __GLX_DECLARE_SWAP_VARIABLES;
  162. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  163. __GLX_SWAP_SHORT_ARRAY(pc + 0, 4);
  164. }
  165. void
  166. __glXDispSwap_EdgeFlagv(GLbyte * pc)
  167. {
  168. }
  169. void
  170. __glXDispSwap_End(GLbyte * pc)
  171. {
  172. }
  173. void
  174. __glXDispSwap_Indexdv(GLbyte * pc)
  175. {
  176. __GLX_DECLARE_SWAP_VARIABLES;
  177. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  178. #ifdef __GLX_ALIGN64
  179. if ((unsigned long) (pc) & 7) {
  180. __GLX_MEM_COPY(pc - 4, pc, 8);
  181. pc -= 4;
  182. }
  183. #endif
  184. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 1);
  185. }
  186. void
  187. __glXDispSwap_Indexfv(GLbyte * pc)
  188. {
  189. __GLX_DECLARE_SWAP_VARIABLES;
  190. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  191. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 1);
  192. }
  193. void
  194. __glXDispSwap_Indexiv(GLbyte * pc)
  195. {
  196. __GLX_DECLARE_SWAP_VARIABLES;
  197. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  198. __GLX_SWAP_INT_ARRAY(pc + 0, 1);
  199. }
  200. void
  201. __glXDispSwap_Indexsv(GLbyte * pc)
  202. {
  203. __GLX_DECLARE_SWAP_VARIABLES;
  204. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  205. __GLX_SWAP_SHORT_ARRAY(pc + 0, 1);
  206. }
  207. void
  208. __glXDispSwap_Normal3bv(GLbyte * pc)
  209. {
  210. }
  211. void
  212. __glXDispSwap_Normal3dv(GLbyte * pc)
  213. {
  214. __GLX_DECLARE_SWAP_VARIABLES;
  215. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  216. #ifdef __GLX_ALIGN64
  217. if ((unsigned long) (pc) & 7) {
  218. __GLX_MEM_COPY(pc - 4, pc, 24);
  219. pc -= 4;
  220. }
  221. #endif
  222. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 3);
  223. }
  224. void
  225. __glXDispSwap_Normal3fv(GLbyte * pc)
  226. {
  227. __GLX_DECLARE_SWAP_VARIABLES;
  228. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  229. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 3);
  230. }
  231. void
  232. __glXDispSwap_Normal3iv(GLbyte * pc)
  233. {
  234. __GLX_DECLARE_SWAP_VARIABLES;
  235. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  236. __GLX_SWAP_INT_ARRAY(pc + 0, 3);
  237. }
  238. void
  239. __glXDispSwap_Normal3sv(GLbyte * pc)
  240. {
  241. __GLX_DECLARE_SWAP_VARIABLES;
  242. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  243. __GLX_SWAP_SHORT_ARRAY(pc + 0, 3);
  244. }
  245. void
  246. __glXDispSwap_RasterPos2dv(GLbyte * pc)
  247. {
  248. __GLX_DECLARE_SWAP_VARIABLES;
  249. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  250. #ifdef __GLX_ALIGN64
  251. if ((unsigned long) (pc) & 7) {
  252. __GLX_MEM_COPY(pc - 4, pc, 16);
  253. pc -= 4;
  254. }
  255. #endif
  256. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 2);
  257. }
  258. void
  259. __glXDispSwap_RasterPos2fv(GLbyte * pc)
  260. {
  261. __GLX_DECLARE_SWAP_VARIABLES;
  262. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  263. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 2);
  264. }
  265. void
  266. __glXDispSwap_RasterPos2iv(GLbyte * pc)
  267. {
  268. __GLX_DECLARE_SWAP_VARIABLES;
  269. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  270. __GLX_SWAP_INT_ARRAY(pc + 0, 2);
  271. }
  272. void
  273. __glXDispSwap_RasterPos2sv(GLbyte * pc)
  274. {
  275. __GLX_DECLARE_SWAP_VARIABLES;
  276. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  277. __GLX_SWAP_SHORT_ARRAY(pc + 0, 2);
  278. }
  279. void
  280. __glXDispSwap_RasterPos3dv(GLbyte * pc)
  281. {
  282. __GLX_DECLARE_SWAP_VARIABLES;
  283. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  284. #ifdef __GLX_ALIGN64
  285. if ((unsigned long) (pc) & 7) {
  286. __GLX_MEM_COPY(pc - 4, pc, 24);
  287. pc -= 4;
  288. }
  289. #endif
  290. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 3);
  291. }
  292. void
  293. __glXDispSwap_RasterPos3fv(GLbyte * pc)
  294. {
  295. __GLX_DECLARE_SWAP_VARIABLES;
  296. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  297. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 3);
  298. }
  299. void
  300. __glXDispSwap_RasterPos3iv(GLbyte * pc)
  301. {
  302. __GLX_DECLARE_SWAP_VARIABLES;
  303. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  304. __GLX_SWAP_INT_ARRAY(pc + 0, 3);
  305. }
  306. void
  307. __glXDispSwap_RasterPos3sv(GLbyte * pc)
  308. {
  309. __GLX_DECLARE_SWAP_VARIABLES;
  310. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  311. __GLX_SWAP_SHORT_ARRAY(pc + 0, 3);
  312. }
  313. void
  314. __glXDispSwap_RasterPos4dv(GLbyte * pc)
  315. {
  316. __GLX_DECLARE_SWAP_VARIABLES;
  317. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  318. #ifdef __GLX_ALIGN64
  319. if ((unsigned long) (pc) & 7) {
  320. __GLX_MEM_COPY(pc - 4, pc, 32);
  321. pc -= 4;
  322. }
  323. #endif
  324. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 4);
  325. }
  326. void
  327. __glXDispSwap_RasterPos4fv(GLbyte * pc)
  328. {
  329. __GLX_DECLARE_SWAP_VARIABLES;
  330. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  331. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 4);
  332. }
  333. void
  334. __glXDispSwap_RasterPos4iv(GLbyte * pc)
  335. {
  336. __GLX_DECLARE_SWAP_VARIABLES;
  337. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  338. __GLX_SWAP_INT_ARRAY(pc + 0, 4);
  339. }
  340. void
  341. __glXDispSwap_RasterPos4sv(GLbyte * pc)
  342. {
  343. __GLX_DECLARE_SWAP_VARIABLES;
  344. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  345. __GLX_SWAP_SHORT_ARRAY(pc + 0, 4);
  346. }
  347. void
  348. __glXDispSwap_Rectdv(GLbyte * pc)
  349. {
  350. __GLX_DECLARE_SWAP_VARIABLES;
  351. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  352. #ifdef __GLX_ALIGN64
  353. if ((unsigned long) (pc) & 7) {
  354. __GLX_MEM_COPY(pc - 4, pc, 32);
  355. pc -= 4;
  356. }
  357. #endif
  358. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 2);
  359. __GLX_SWAP_DOUBLE_ARRAY(pc + 16, 2);
  360. }
  361. void
  362. __glXDispSwap_Rectfv(GLbyte * pc)
  363. {
  364. __GLX_DECLARE_SWAP_VARIABLES;
  365. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  366. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 2);
  367. __GLX_SWAP_FLOAT_ARRAY(pc + 8, 2);
  368. }
  369. void
  370. __glXDispSwap_Rectiv(GLbyte * pc)
  371. {
  372. __GLX_DECLARE_SWAP_VARIABLES;
  373. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  374. __GLX_SWAP_INT_ARRAY(pc + 0, 2);
  375. __GLX_SWAP_INT_ARRAY(pc + 8, 2);
  376. }
  377. void
  378. __glXDispSwap_Rectsv(GLbyte * pc)
  379. {
  380. __GLX_DECLARE_SWAP_VARIABLES;
  381. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  382. __GLX_SWAP_SHORT_ARRAY(pc + 0, 2);
  383. __GLX_SWAP_SHORT_ARRAY(pc + 4, 2);
  384. }
  385. void
  386. __glXDispSwap_TexCoord1dv(GLbyte * pc)
  387. {
  388. __GLX_DECLARE_SWAP_VARIABLES;
  389. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  390. #ifdef __GLX_ALIGN64
  391. if ((unsigned long) (pc) & 7) {
  392. __GLX_MEM_COPY(pc - 4, pc, 8);
  393. pc -= 4;
  394. }
  395. #endif
  396. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 1);
  397. }
  398. void
  399. __glXDispSwap_TexCoord1fv(GLbyte * pc)
  400. {
  401. __GLX_DECLARE_SWAP_VARIABLES;
  402. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  403. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 1);
  404. }
  405. void
  406. __glXDispSwap_TexCoord1iv(GLbyte * pc)
  407. {
  408. __GLX_DECLARE_SWAP_VARIABLES;
  409. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  410. __GLX_SWAP_INT_ARRAY(pc + 0, 1);
  411. }
  412. void
  413. __glXDispSwap_TexCoord1sv(GLbyte * pc)
  414. {
  415. __GLX_DECLARE_SWAP_VARIABLES;
  416. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  417. __GLX_SWAP_SHORT_ARRAY(pc + 0, 1);
  418. }
  419. void
  420. __glXDispSwap_TexCoord2dv(GLbyte * pc)
  421. {
  422. __GLX_DECLARE_SWAP_VARIABLES;
  423. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  424. #ifdef __GLX_ALIGN64
  425. if ((unsigned long) (pc) & 7) {
  426. __GLX_MEM_COPY(pc - 4, pc, 16);
  427. pc -= 4;
  428. }
  429. #endif
  430. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 2);
  431. }
  432. void
  433. __glXDispSwap_TexCoord2fv(GLbyte * pc)
  434. {
  435. __GLX_DECLARE_SWAP_VARIABLES;
  436. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  437. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 2);
  438. }
  439. void
  440. __glXDispSwap_TexCoord2iv(GLbyte * pc)
  441. {
  442. __GLX_DECLARE_SWAP_VARIABLES;
  443. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  444. __GLX_SWAP_INT_ARRAY(pc + 0, 2);
  445. }
  446. void
  447. __glXDispSwap_TexCoord2sv(GLbyte * pc)
  448. {
  449. __GLX_DECLARE_SWAP_VARIABLES;
  450. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  451. __GLX_SWAP_SHORT_ARRAY(pc + 0, 2);
  452. }
  453. void
  454. __glXDispSwap_TexCoord3dv(GLbyte * pc)
  455. {
  456. __GLX_DECLARE_SWAP_VARIABLES;
  457. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  458. #ifdef __GLX_ALIGN64
  459. if ((unsigned long) (pc) & 7) {
  460. __GLX_MEM_COPY(pc - 4, pc, 24);
  461. pc -= 4;
  462. }
  463. #endif
  464. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 3);
  465. }
  466. void
  467. __glXDispSwap_TexCoord3fv(GLbyte * pc)
  468. {
  469. __GLX_DECLARE_SWAP_VARIABLES;
  470. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  471. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 3);
  472. }
  473. void
  474. __glXDispSwap_TexCoord3iv(GLbyte * pc)
  475. {
  476. __GLX_DECLARE_SWAP_VARIABLES;
  477. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  478. __GLX_SWAP_INT_ARRAY(pc + 0, 3);
  479. }
  480. void
  481. __glXDispSwap_TexCoord3sv(GLbyte * pc)
  482. {
  483. __GLX_DECLARE_SWAP_VARIABLES;
  484. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  485. __GLX_SWAP_SHORT_ARRAY(pc + 0, 3);
  486. }
  487. void
  488. __glXDispSwap_TexCoord4dv(GLbyte * pc)
  489. {
  490. __GLX_DECLARE_SWAP_VARIABLES;
  491. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  492. #ifdef __GLX_ALIGN64
  493. if ((unsigned long) (pc) & 7) {
  494. __GLX_MEM_COPY(pc - 4, pc, 32);
  495. pc -= 4;
  496. }
  497. #endif
  498. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 4);
  499. }
  500. void
  501. __glXDispSwap_TexCoord4fv(GLbyte * pc)
  502. {
  503. __GLX_DECLARE_SWAP_VARIABLES;
  504. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  505. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 4);
  506. }
  507. void
  508. __glXDispSwap_TexCoord4iv(GLbyte * pc)
  509. {
  510. __GLX_DECLARE_SWAP_VARIABLES;
  511. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  512. __GLX_SWAP_INT_ARRAY(pc + 0, 4);
  513. }
  514. void
  515. __glXDispSwap_TexCoord4sv(GLbyte * pc)
  516. {
  517. __GLX_DECLARE_SWAP_VARIABLES;
  518. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  519. __GLX_SWAP_SHORT_ARRAY(pc + 0, 4);
  520. }
  521. void
  522. __glXDispSwap_Vertex2dv(GLbyte * pc)
  523. {
  524. __GLX_DECLARE_SWAP_VARIABLES;
  525. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  526. #ifdef __GLX_ALIGN64
  527. if ((unsigned long) (pc) & 7) {
  528. __GLX_MEM_COPY(pc - 4, pc, 16);
  529. pc -= 4;
  530. }
  531. #endif
  532. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 2);
  533. }
  534. void
  535. __glXDispSwap_Vertex2fv(GLbyte * pc)
  536. {
  537. __GLX_DECLARE_SWAP_VARIABLES;
  538. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  539. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 2);
  540. }
  541. void
  542. __glXDispSwap_Vertex2iv(GLbyte * pc)
  543. {
  544. __GLX_DECLARE_SWAP_VARIABLES;
  545. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  546. __GLX_SWAP_INT_ARRAY(pc + 0, 2);
  547. }
  548. void
  549. __glXDispSwap_Vertex2sv(GLbyte * pc)
  550. {
  551. __GLX_DECLARE_SWAP_VARIABLES;
  552. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  553. __GLX_SWAP_SHORT_ARRAY(pc + 0, 2);
  554. }
  555. void
  556. __glXDispSwap_Vertex3dv(GLbyte * pc)
  557. {
  558. __GLX_DECLARE_SWAP_VARIABLES;
  559. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  560. #ifdef __GLX_ALIGN64
  561. if ((unsigned long) (pc) & 7) {
  562. __GLX_MEM_COPY(pc - 4, pc, 24);
  563. pc -= 4;
  564. }
  565. #endif
  566. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 3);
  567. }
  568. void
  569. __glXDispSwap_Vertex3fv(GLbyte * pc)
  570. {
  571. __GLX_DECLARE_SWAP_VARIABLES;
  572. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  573. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 3);
  574. }
  575. void
  576. __glXDispSwap_Vertex3iv(GLbyte * pc)
  577. {
  578. __GLX_DECLARE_SWAP_VARIABLES;
  579. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  580. __GLX_SWAP_INT_ARRAY(pc + 0, 3);
  581. }
  582. void
  583. __glXDispSwap_Vertex3sv(GLbyte * pc)
  584. {
  585. __GLX_DECLARE_SWAP_VARIABLES;
  586. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  587. __GLX_SWAP_SHORT_ARRAY(pc + 0, 3);
  588. }
  589. void
  590. __glXDispSwap_Vertex4dv(GLbyte * pc)
  591. {
  592. __GLX_DECLARE_SWAP_VARIABLES;
  593. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  594. #ifdef __GLX_ALIGN64
  595. if ((unsigned long) (pc) & 7) {
  596. __GLX_MEM_COPY(pc - 4, pc, 32);
  597. pc -= 4;
  598. }
  599. #endif
  600. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 4);
  601. }
  602. void
  603. __glXDispSwap_Vertex4fv(GLbyte * pc)
  604. {
  605. __GLX_DECLARE_SWAP_VARIABLES;
  606. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  607. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 4);
  608. }
  609. void
  610. __glXDispSwap_Vertex4iv(GLbyte * pc)
  611. {
  612. __GLX_DECLARE_SWAP_VARIABLES;
  613. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  614. __GLX_SWAP_INT_ARRAY(pc + 0, 4);
  615. }
  616. void
  617. __glXDispSwap_Vertex4sv(GLbyte * pc)
  618. {
  619. __GLX_DECLARE_SWAP_VARIABLES;
  620. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  621. __GLX_SWAP_SHORT_ARRAY(pc + 0, 4);
  622. }
  623. void
  624. __glXDispSwap_ClipPlane(GLbyte * pc)
  625. {
  626. __GLX_DECLARE_SWAP_VARIABLES;
  627. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  628. #ifdef __GLX_ALIGN64
  629. if ((unsigned long) (pc) & 7) {
  630. __GLX_MEM_COPY(pc - 4, pc, 36);
  631. pc -= 4;
  632. }
  633. #endif
  634. __GLX_SWAP_INT(pc + 32);
  635. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 4);
  636. }
  637. void
  638. __glXDispSwap_ColorMaterial(GLbyte * pc)
  639. {
  640. __GLX_DECLARE_SWAP_VARIABLES;
  641. __GLX_SWAP_INT(pc + 0);
  642. __GLX_SWAP_INT(pc + 4);
  643. }
  644. void
  645. __glXDispSwap_CullFace(GLbyte * pc)
  646. {
  647. __GLX_DECLARE_SWAP_VARIABLES;
  648. __GLX_SWAP_INT(pc + 0);
  649. }
  650. void
  651. __glXDispSwap_Fogf(GLbyte * pc)
  652. {
  653. __GLX_DECLARE_SWAP_VARIABLES;
  654. __GLX_SWAP_INT(pc + 0);
  655. __GLX_SWAP_FLOAT(pc + 4);
  656. }
  657. void
  658. __glXDispSwap_Fogfv(GLbyte * pc)
  659. {
  660. GLenum pname;
  661. GLint compsize;
  662. __GLX_DECLARE_SWAP_VARIABLES;
  663. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  664. __GLX_SWAP_INT(pc + 0);
  665. pname = *(GLenum *) (pc + 0);
  666. compsize = __glFogfv_size(pname);
  667. if (compsize < 0)
  668. compsize = 0;
  669. __GLX_SWAP_FLOAT_ARRAY(pc + 4, compsize);
  670. }
  671. void
  672. __glXDispSwap_Fogi(GLbyte * pc)
  673. {
  674. __GLX_DECLARE_SWAP_VARIABLES;
  675. __GLX_SWAP_INT(pc + 0);
  676. __GLX_SWAP_INT(pc + 4);
  677. }
  678. void
  679. __glXDispSwap_Fogiv(GLbyte * pc)
  680. {
  681. GLenum pname;
  682. GLint compsize;
  683. __GLX_DECLARE_SWAP_VARIABLES;
  684. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  685. __GLX_SWAP_INT(pc + 0);
  686. pname = *(GLenum *) (pc + 0);
  687. compsize = __glFogiv_size(pname);
  688. if (compsize < 0)
  689. compsize = 0;
  690. __GLX_SWAP_INT_ARRAY(pc + 4, compsize);
  691. }
  692. void
  693. __glXDispSwap_FrontFace(GLbyte * pc)
  694. {
  695. __GLX_DECLARE_SWAP_VARIABLES;
  696. __GLX_SWAP_INT(pc + 0);
  697. }
  698. void
  699. __glXDispSwap_Hint(GLbyte * pc)
  700. {
  701. __GLX_DECLARE_SWAP_VARIABLES;
  702. __GLX_SWAP_INT(pc + 0);
  703. __GLX_SWAP_INT(pc + 4);
  704. }
  705. void
  706. __glXDispSwap_Lightf(GLbyte * pc)
  707. {
  708. __GLX_DECLARE_SWAP_VARIABLES;
  709. __GLX_SWAP_INT(pc + 0);
  710. __GLX_SWAP_INT(pc + 4);
  711. __GLX_SWAP_FLOAT(pc + 8);
  712. }
  713. void
  714. __glXDispSwap_Lightfv(GLbyte * pc)
  715. {
  716. GLenum pname;
  717. GLint compsize;
  718. __GLX_DECLARE_SWAP_VARIABLES;
  719. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  720. __GLX_SWAP_INT(pc + 4);
  721. pname = *(GLenum *) (pc + 4);
  722. compsize = __glLightfv_size(pname);
  723. if (compsize < 0)
  724. compsize = 0;
  725. __GLX_SWAP_INT(pc + 0);
  726. __GLX_SWAP_FLOAT_ARRAY(pc + 8, compsize);
  727. }
  728. void
  729. __glXDispSwap_Lighti(GLbyte * pc)
  730. {
  731. __GLX_DECLARE_SWAP_VARIABLES;
  732. __GLX_SWAP_INT(pc + 0);
  733. __GLX_SWAP_INT(pc + 4);
  734. __GLX_SWAP_INT(pc + 8);
  735. }
  736. void
  737. __glXDispSwap_Lightiv(GLbyte * pc)
  738. {
  739. GLenum pname;
  740. GLint compsize;
  741. __GLX_DECLARE_SWAP_VARIABLES;
  742. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  743. __GLX_SWAP_INT(pc + 4);
  744. pname = *(GLenum *) (pc + 4);
  745. compsize = __glLightiv_size(pname);
  746. if (compsize < 0)
  747. compsize = 0;
  748. __GLX_SWAP_INT(pc + 0);
  749. __GLX_SWAP_INT_ARRAY(pc + 8, compsize);
  750. }
  751. void
  752. __glXDispSwap_LightModelf(GLbyte * pc)
  753. {
  754. __GLX_DECLARE_SWAP_VARIABLES;
  755. __GLX_SWAP_INT(pc + 0);
  756. __GLX_SWAP_FLOAT(pc + 4);
  757. }
  758. void
  759. __glXDispSwap_LightModelfv(GLbyte * pc)
  760. {
  761. GLenum pname;
  762. GLint compsize;
  763. __GLX_DECLARE_SWAP_VARIABLES;
  764. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  765. __GLX_SWAP_INT(pc + 0);
  766. pname = *(GLenum *) (pc + 0);
  767. compsize = __glLightModelfv_size(pname);
  768. if (compsize < 0)
  769. compsize = 0;
  770. __GLX_SWAP_FLOAT_ARRAY(pc + 4, compsize);
  771. }
  772. void
  773. __glXDispSwap_LightModeli(GLbyte * pc)
  774. {
  775. __GLX_DECLARE_SWAP_VARIABLES;
  776. __GLX_SWAP_INT(pc + 0);
  777. __GLX_SWAP_INT(pc + 4);
  778. }
  779. void
  780. __glXDispSwap_LightModeliv(GLbyte * pc)
  781. {
  782. GLenum pname;
  783. GLint compsize;
  784. __GLX_DECLARE_SWAP_VARIABLES;
  785. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  786. __GLX_SWAP_INT(pc + 0);
  787. pname = *(GLenum *) (pc + 0);
  788. compsize = __glLightModeliv_size(pname);
  789. if (compsize < 0)
  790. compsize = 0;
  791. __GLX_SWAP_INT_ARRAY(pc + 4, compsize);
  792. }
  793. void
  794. __glXDispSwap_LineStipple(GLbyte * pc)
  795. {
  796. __GLX_DECLARE_SWAP_VARIABLES;
  797. __GLX_SWAP_INT(pc + 0);
  798. __GLX_SWAP_SHORT(pc + 4);
  799. }
  800. void
  801. __glXDispSwap_LineWidth(GLbyte * pc)
  802. {
  803. __GLX_DECLARE_SWAP_VARIABLES;
  804. __GLX_SWAP_FLOAT(pc + 0);
  805. }
  806. void
  807. __glXDispSwap_Materialf(GLbyte * pc)
  808. {
  809. __GLX_DECLARE_SWAP_VARIABLES;
  810. __GLX_SWAP_INT(pc + 0);
  811. __GLX_SWAP_INT(pc + 4);
  812. __GLX_SWAP_FLOAT(pc + 8);
  813. }
  814. void
  815. __glXDispSwap_Materialfv(GLbyte * pc)
  816. {
  817. GLenum pname;
  818. GLint compsize;
  819. __GLX_DECLARE_SWAP_VARIABLES;
  820. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  821. __GLX_SWAP_INT(pc + 4);
  822. pname = *(GLenum *) (pc + 4);
  823. compsize = __glMaterialfv_size(pname);
  824. if (compsize < 0)
  825. compsize = 0;
  826. __GLX_SWAP_INT(pc + 0);
  827. __GLX_SWAP_FLOAT_ARRAY(pc + 8, compsize);
  828. }
  829. void
  830. __glXDispSwap_Materiali(GLbyte * pc)
  831. {
  832. __GLX_DECLARE_SWAP_VARIABLES;
  833. __GLX_SWAP_INT(pc + 0);
  834. __GLX_SWAP_INT(pc + 4);
  835. __GLX_SWAP_INT(pc + 8);
  836. }
  837. void
  838. __glXDispSwap_Materialiv(GLbyte * pc)
  839. {
  840. GLenum pname;
  841. GLint compsize;
  842. __GLX_DECLARE_SWAP_VARIABLES;
  843. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  844. __GLX_SWAP_INT(pc + 4);
  845. pname = *(GLenum *) (pc + 4);
  846. compsize = __glMaterialiv_size(pname);
  847. if (compsize < 0)
  848. compsize = 0;
  849. __GLX_SWAP_INT(pc + 0);
  850. __GLX_SWAP_INT_ARRAY(pc + 8, compsize);
  851. }
  852. void
  853. __glXDispSwap_PointSize(GLbyte * pc)
  854. {
  855. __GLX_DECLARE_SWAP_VARIABLES;
  856. __GLX_SWAP_FLOAT(pc + 0);
  857. }
  858. void
  859. __glXDispSwap_PolygonMode(GLbyte * pc)
  860. {
  861. __GLX_DECLARE_SWAP_VARIABLES;
  862. __GLX_SWAP_INT(pc + 0);
  863. __GLX_SWAP_INT(pc + 4);
  864. }
  865. void
  866. __glXDispSwap_Scissor(GLbyte * pc)
  867. {
  868. __GLX_DECLARE_SWAP_VARIABLES;
  869. __GLX_SWAP_INT(pc + 0);
  870. __GLX_SWAP_INT(pc + 4);
  871. __GLX_SWAP_INT(pc + 8);
  872. __GLX_SWAP_INT(pc + 12);
  873. }
  874. void
  875. __glXDispSwap_ShadeModel(GLbyte * pc)
  876. {
  877. __GLX_DECLARE_SWAP_VARIABLES;
  878. __GLX_SWAP_INT(pc + 0);
  879. }
  880. void
  881. __glXDispSwap_TexParameterf(GLbyte * pc)
  882. {
  883. __GLX_DECLARE_SWAP_VARIABLES;
  884. __GLX_SWAP_INT(pc + 0);
  885. __GLX_SWAP_INT(pc + 4);
  886. __GLX_SWAP_FLOAT(pc + 8);
  887. }
  888. void
  889. __glXDispSwap_TexParameterfv(GLbyte * pc)
  890. {
  891. GLenum pname;
  892. GLint compsize;
  893. __GLX_DECLARE_SWAP_VARIABLES;
  894. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  895. __GLX_SWAP_INT(pc + 4);
  896. pname = *(GLenum *) (pc + 4);
  897. compsize = __glTexParameterfv_size(pname);
  898. if (compsize < 0)
  899. compsize = 0;
  900. __GLX_SWAP_INT(pc + 0);
  901. __GLX_SWAP_FLOAT_ARRAY(pc + 8, compsize);
  902. }
  903. void
  904. __glXDispSwap_TexParameteri(GLbyte * pc)
  905. {
  906. __GLX_DECLARE_SWAP_VARIABLES;
  907. __GLX_SWAP_INT(pc + 0);
  908. __GLX_SWAP_INT(pc + 4);
  909. __GLX_SWAP_INT(pc + 8);
  910. }
  911. void
  912. __glXDispSwap_TexParameteriv(GLbyte * pc)
  913. {
  914. GLenum pname;
  915. GLint compsize;
  916. __GLX_DECLARE_SWAP_VARIABLES;
  917. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  918. __GLX_SWAP_INT(pc + 4);
  919. pname = *(GLenum *) (pc + 4);
  920. compsize = __glTexParameteriv_size(pname);
  921. if (compsize < 0)
  922. compsize = 0;
  923. __GLX_SWAP_INT(pc + 0);
  924. __GLX_SWAP_INT_ARRAY(pc + 8, compsize);
  925. }
  926. void
  927. __glXDispSwap_TexEnvf(GLbyte * pc)
  928. {
  929. __GLX_DECLARE_SWAP_VARIABLES;
  930. __GLX_SWAP_INT(pc + 0);
  931. __GLX_SWAP_INT(pc + 4);
  932. __GLX_SWAP_FLOAT(pc + 8);
  933. }
  934. void
  935. __glXDispSwap_TexEnvfv(GLbyte * pc)
  936. {
  937. GLenum pname;
  938. GLint compsize;
  939. __GLX_DECLARE_SWAP_VARIABLES;
  940. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  941. __GLX_SWAP_INT(pc + 4);
  942. pname = *(GLenum *) (pc + 4);
  943. compsize = __glTexEnvfv_size(pname);
  944. if (compsize < 0)
  945. compsize = 0;
  946. __GLX_SWAP_INT(pc + 0);
  947. __GLX_SWAP_FLOAT_ARRAY(pc + 8, compsize);
  948. }
  949. void
  950. __glXDispSwap_TexEnvi(GLbyte * pc)
  951. {
  952. __GLX_DECLARE_SWAP_VARIABLES;
  953. __GLX_SWAP_INT(pc + 0);
  954. __GLX_SWAP_INT(pc + 4);
  955. __GLX_SWAP_INT(pc + 8);
  956. }
  957. void
  958. __glXDispSwap_TexEnviv(GLbyte * pc)
  959. {
  960. GLenum pname;
  961. GLint compsize;
  962. __GLX_DECLARE_SWAP_VARIABLES;
  963. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  964. __GLX_SWAP_INT(pc + 4);
  965. pname = *(GLenum *) (pc + 4);
  966. compsize = __glTexEnviv_size(pname);
  967. if (compsize < 0)
  968. compsize = 0;
  969. __GLX_SWAP_INT(pc + 0);
  970. __GLX_SWAP_INT_ARRAY(pc + 8, compsize);
  971. }
  972. void
  973. __glXDispSwap_TexGend(GLbyte * pc)
  974. {
  975. __GLX_DECLARE_SWAP_VARIABLES;
  976. #ifdef __GLX_ALIGN64
  977. if ((unsigned long) (pc) & 7) {
  978. __GLX_MEM_COPY(pc - 4, pc, 16);
  979. pc -= 4;
  980. }
  981. #endif
  982. __GLX_SWAP_INT(pc + 8);
  983. __GLX_SWAP_INT(pc + 12);
  984. __GLX_SWAP_DOUBLE(pc + 0);
  985. }
  986. void
  987. __glXDispSwap_TexGendv(GLbyte * pc)
  988. {
  989. GLenum pname;
  990. GLint cmdlen;
  991. GLint compsize;
  992. __GLX_DECLARE_SWAP_VARIABLES;
  993. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  994. __GLX_SWAP_INT(pc + 4);
  995. pname = *(GLenum *) (pc + 4);
  996. compsize = __glTexGendv_size(pname);
  997. if (compsize < 0)
  998. compsize = 0;
  999. cmdlen = __GLX_PAD(8 + compsize * 8);
  1000. #ifdef __GLX_ALIGN64
  1001. if ((unsigned long) (pc) & 7) {
  1002. __GLX_MEM_COPY(pc - 4, pc, cmdlen);
  1003. pc -= 4;
  1004. }
  1005. #endif
  1006. __GLX_SWAP_INT(pc + 0);
  1007. __GLX_SWAP_DOUBLE_ARRAY(pc + 8, compsize);
  1008. }
  1009. void
  1010. __glXDispSwap_TexGenf(GLbyte * pc)
  1011. {
  1012. __GLX_DECLARE_SWAP_VARIABLES;
  1013. __GLX_SWAP_INT(pc + 0);
  1014. __GLX_SWAP_INT(pc + 4);
  1015. __GLX_SWAP_FLOAT(pc + 8);
  1016. }
  1017. void
  1018. __glXDispSwap_TexGenfv(GLbyte * pc)
  1019. {
  1020. GLenum pname;
  1021. GLint compsize;
  1022. __GLX_DECLARE_SWAP_VARIABLES;
  1023. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1024. __GLX_SWAP_INT(pc + 4);
  1025. pname = *(GLenum *) (pc + 4);
  1026. compsize = __glTexGenfv_size(pname);
  1027. if (compsize < 0)
  1028. compsize = 0;
  1029. __GLX_SWAP_INT(pc + 0);
  1030. __GLX_SWAP_FLOAT_ARRAY(pc + 8, compsize);
  1031. }
  1032. void
  1033. __glXDispSwap_TexGeni(GLbyte * pc)
  1034. {
  1035. __GLX_DECLARE_SWAP_VARIABLES;
  1036. __GLX_SWAP_INT(pc + 0);
  1037. __GLX_SWAP_INT(pc + 4);
  1038. __GLX_SWAP_INT(pc + 8);
  1039. }
  1040. void
  1041. __glXDispSwap_TexGeniv(GLbyte * pc)
  1042. {
  1043. GLenum pname;
  1044. GLint compsize;
  1045. __GLX_DECLARE_SWAP_VARIABLES;
  1046. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1047. __GLX_SWAP_INT(pc + 4);
  1048. pname = *(GLenum *) (pc + 4);
  1049. compsize = __glTexGeniv_size(pname);
  1050. if (compsize < 0)
  1051. compsize = 0;
  1052. __GLX_SWAP_INT(pc + 0);
  1053. __GLX_SWAP_INT_ARRAY(pc + 8, compsize);
  1054. }
  1055. void
  1056. __glXDispSwap_InitNames(GLbyte * pc)
  1057. {
  1058. }
  1059. void
  1060. __glXDispSwap_LoadName(GLbyte * pc)
  1061. {
  1062. __GLX_DECLARE_SWAP_VARIABLES;
  1063. __GLX_SWAP_INT(pc + 0);
  1064. }
  1065. void
  1066. __glXDispSwap_PassThrough(GLbyte * pc)
  1067. {
  1068. __GLX_DECLARE_SWAP_VARIABLES;
  1069. __GLX_SWAP_FLOAT(pc + 0);
  1070. }
  1071. void
  1072. __glXDispSwap_PopName(GLbyte * pc)
  1073. {
  1074. }
  1075. void
  1076. __glXDispSwap_PushName(GLbyte * pc)
  1077. {
  1078. __GLX_DECLARE_SWAP_VARIABLES;
  1079. __GLX_SWAP_INT(pc + 0);
  1080. }
  1081. void
  1082. __glXDispSwap_DrawBuffer(GLbyte * pc)
  1083. {
  1084. __GLX_DECLARE_SWAP_VARIABLES;
  1085. __GLX_SWAP_INT(pc + 0);
  1086. }
  1087. void
  1088. __glXDispSwap_Clear(GLbyte * pc)
  1089. {
  1090. __GLX_DECLARE_SWAP_VARIABLES;
  1091. __GLX_SWAP_INT(pc + 0);
  1092. }
  1093. void
  1094. __glXDispSwap_ClearAccum(GLbyte * pc)
  1095. {
  1096. __GLX_DECLARE_SWAP_VARIABLES;
  1097. __GLX_SWAP_FLOAT(pc + 0);
  1098. __GLX_SWAP_FLOAT(pc + 4);
  1099. __GLX_SWAP_FLOAT(pc + 8);
  1100. __GLX_SWAP_FLOAT(pc + 12);
  1101. }
  1102. void
  1103. __glXDispSwap_ClearIndex(GLbyte * pc)
  1104. {
  1105. __GLX_DECLARE_SWAP_VARIABLES;
  1106. __GLX_SWAP_FLOAT(pc + 0);
  1107. }
  1108. void
  1109. __glXDispSwap_ClearColor(GLbyte * pc)
  1110. {
  1111. __GLX_DECLARE_SWAP_VARIABLES;
  1112. __GLX_SWAP_FLOAT(pc + 0);
  1113. __GLX_SWAP_FLOAT(pc + 4);
  1114. __GLX_SWAP_FLOAT(pc + 8);
  1115. __GLX_SWAP_FLOAT(pc + 12);
  1116. }
  1117. void
  1118. __glXDispSwap_ClearStencil(GLbyte * pc)
  1119. {
  1120. __GLX_DECLARE_SWAP_VARIABLES;
  1121. __GLX_SWAP_INT(pc + 0);
  1122. }
  1123. void
  1124. __glXDispSwap_ClearDepth(GLbyte * pc)
  1125. {
  1126. __GLX_DECLARE_SWAP_VARIABLES;
  1127. #ifdef __GLX_ALIGN64
  1128. if ((unsigned long) (pc) & 7) {
  1129. __GLX_MEM_COPY(pc - 4, pc, 8);
  1130. pc -= 4;
  1131. }
  1132. #endif
  1133. __GLX_SWAP_DOUBLE(pc + 0);
  1134. }
  1135. void
  1136. __glXDispSwap_StencilMask(GLbyte * pc)
  1137. {
  1138. __GLX_DECLARE_SWAP_VARIABLES;
  1139. __GLX_SWAP_INT(pc + 0);
  1140. }
  1141. void
  1142. __glXDispSwap_ColorMask(GLbyte * pc)
  1143. {
  1144. }
  1145. void
  1146. __glXDispSwap_DepthMask(GLbyte * pc)
  1147. {
  1148. }
  1149. void
  1150. __glXDispSwap_IndexMask(GLbyte * pc)
  1151. {
  1152. __GLX_DECLARE_SWAP_VARIABLES;
  1153. __GLX_SWAP_INT(pc + 0);
  1154. }
  1155. void
  1156. __glXDispSwap_Accum(GLbyte * pc)
  1157. {
  1158. __GLX_DECLARE_SWAP_VARIABLES;
  1159. __GLX_SWAP_INT(pc + 0);
  1160. __GLX_SWAP_FLOAT(pc + 4);
  1161. }
  1162. void
  1163. __glXDispSwap_Disable(GLbyte * pc)
  1164. {
  1165. __GLX_DECLARE_SWAP_VARIABLES;
  1166. __GLX_SWAP_INT(pc + 0);
  1167. }
  1168. void
  1169. __glXDispSwap_Enable(GLbyte * pc)
  1170. {
  1171. __GLX_DECLARE_SWAP_VARIABLES;
  1172. __GLX_SWAP_INT(pc + 0);
  1173. }
  1174. void
  1175. __glXDispSwap_PopAttrib(GLbyte * pc)
  1176. {
  1177. }
  1178. void
  1179. __glXDispSwap_PushAttrib(GLbyte * pc)
  1180. {
  1181. __GLX_DECLARE_SWAP_VARIABLES;
  1182. __GLX_SWAP_INT(pc + 0);
  1183. }
  1184. void
  1185. __glXDispSwap_MapGrid1d(GLbyte * pc)
  1186. {
  1187. __GLX_DECLARE_SWAP_VARIABLES;
  1188. #ifdef __GLX_ALIGN64
  1189. if ((unsigned long) (pc) & 7) {
  1190. __GLX_MEM_COPY(pc - 4, pc, 20);
  1191. pc -= 4;
  1192. }
  1193. #endif
  1194. __GLX_SWAP_INT(pc + 16);
  1195. __GLX_SWAP_DOUBLE(pc + 0);
  1196. __GLX_SWAP_DOUBLE(pc + 8);
  1197. }
  1198. void
  1199. __glXDispSwap_MapGrid1f(GLbyte * pc)
  1200. {
  1201. __GLX_DECLARE_SWAP_VARIABLES;
  1202. __GLX_SWAP_INT(pc + 0);
  1203. __GLX_SWAP_FLOAT(pc + 4);
  1204. __GLX_SWAP_FLOAT(pc + 8);
  1205. }
  1206. void
  1207. __glXDispSwap_MapGrid2d(GLbyte * pc)
  1208. {
  1209. __GLX_DECLARE_SWAP_VARIABLES;
  1210. #ifdef __GLX_ALIGN64
  1211. if ((unsigned long) (pc) & 7) {
  1212. __GLX_MEM_COPY(pc - 4, pc, 40);
  1213. pc -= 4;
  1214. }
  1215. #endif
  1216. __GLX_SWAP_INT(pc + 32);
  1217. __GLX_SWAP_DOUBLE(pc + 0);
  1218. __GLX_SWAP_DOUBLE(pc + 8);
  1219. __GLX_SWAP_INT(pc + 36);
  1220. __GLX_SWAP_DOUBLE(pc + 16);
  1221. __GLX_SWAP_DOUBLE(pc + 24);
  1222. }
  1223. void
  1224. __glXDispSwap_MapGrid2f(GLbyte * pc)
  1225. {
  1226. __GLX_DECLARE_SWAP_VARIABLES;
  1227. __GLX_SWAP_INT(pc + 0);
  1228. __GLX_SWAP_FLOAT(pc + 4);
  1229. __GLX_SWAP_FLOAT(pc + 8);
  1230. __GLX_SWAP_INT(pc + 12);
  1231. __GLX_SWAP_FLOAT(pc + 16);
  1232. __GLX_SWAP_FLOAT(pc + 20);
  1233. }
  1234. void
  1235. __glXDispSwap_EvalCoord1dv(GLbyte * pc)
  1236. {
  1237. __GLX_DECLARE_SWAP_VARIABLES;
  1238. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1239. #ifdef __GLX_ALIGN64
  1240. if ((unsigned long) (pc) & 7) {
  1241. __GLX_MEM_COPY(pc - 4, pc, 8);
  1242. pc -= 4;
  1243. }
  1244. #endif
  1245. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 1);
  1246. }
  1247. void
  1248. __glXDispSwap_EvalCoord1fv(GLbyte * pc)
  1249. {
  1250. __GLX_DECLARE_SWAP_VARIABLES;
  1251. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1252. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 1);
  1253. }
  1254. void
  1255. __glXDispSwap_EvalCoord2dv(GLbyte * pc)
  1256. {
  1257. __GLX_DECLARE_SWAP_VARIABLES;
  1258. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1259. #ifdef __GLX_ALIGN64
  1260. if ((unsigned long) (pc) & 7) {
  1261. __GLX_MEM_COPY(pc - 4, pc, 16);
  1262. pc -= 4;
  1263. }
  1264. #endif
  1265. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 2);
  1266. }
  1267. void
  1268. __glXDispSwap_EvalCoord2fv(GLbyte * pc)
  1269. {
  1270. __GLX_DECLARE_SWAP_VARIABLES;
  1271. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1272. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 2);
  1273. }
  1274. void
  1275. __glXDispSwap_EvalMesh1(GLbyte * pc)
  1276. {
  1277. __GLX_DECLARE_SWAP_VARIABLES;
  1278. __GLX_SWAP_INT(pc + 0);
  1279. __GLX_SWAP_INT(pc + 4);
  1280. __GLX_SWAP_INT(pc + 8);
  1281. }
  1282. void
  1283. __glXDispSwap_EvalPoint1(GLbyte * pc)
  1284. {
  1285. __GLX_DECLARE_SWAP_VARIABLES;
  1286. __GLX_SWAP_INT(pc + 0);
  1287. }
  1288. void
  1289. __glXDispSwap_EvalMesh2(GLbyte * pc)
  1290. {
  1291. __GLX_DECLARE_SWAP_VARIABLES;
  1292. __GLX_SWAP_INT(pc + 0);
  1293. __GLX_SWAP_INT(pc + 4);
  1294. __GLX_SWAP_INT(pc + 8);
  1295. __GLX_SWAP_INT(pc + 12);
  1296. __GLX_SWAP_INT(pc + 16);
  1297. }
  1298. void
  1299. __glXDispSwap_EvalPoint2(GLbyte * pc)
  1300. {
  1301. __GLX_DECLARE_SWAP_VARIABLES;
  1302. __GLX_SWAP_INT(pc + 0);
  1303. __GLX_SWAP_INT(pc + 4);
  1304. }
  1305. void
  1306. __glXDispSwap_AlphaFunc(GLbyte * pc)
  1307. {
  1308. __GLX_DECLARE_SWAP_VARIABLES;
  1309. __GLX_SWAP_INT(pc + 0);
  1310. __GLX_SWAP_FLOAT(pc + 4);
  1311. }
  1312. void
  1313. __glXDispSwap_BlendFunc(GLbyte * pc)
  1314. {
  1315. __GLX_DECLARE_SWAP_VARIABLES;
  1316. __GLX_SWAP_INT(pc + 0);
  1317. __GLX_SWAP_INT(pc + 4);
  1318. }
  1319. void
  1320. __glXDispSwap_LogicOp(GLbyte * pc)
  1321. {
  1322. __GLX_DECLARE_SWAP_VARIABLES;
  1323. __GLX_SWAP_INT(pc + 0);
  1324. }
  1325. void
  1326. __glXDispSwap_StencilFunc(GLbyte * pc)
  1327. {
  1328. __GLX_DECLARE_SWAP_VARIABLES;
  1329. __GLX_SWAP_INT(pc + 0);
  1330. __GLX_SWAP_INT(pc + 4);
  1331. __GLX_SWAP_INT(pc + 8);
  1332. }
  1333. void
  1334. __glXDispSwap_StencilOp(GLbyte * pc)
  1335. {
  1336. __GLX_DECLARE_SWAP_VARIABLES;
  1337. __GLX_SWAP_INT(pc + 0);
  1338. __GLX_SWAP_INT(pc + 4);
  1339. __GLX_SWAP_INT(pc + 8);
  1340. }
  1341. void
  1342. __glXDispSwap_DepthFunc(GLbyte * pc)
  1343. {
  1344. __GLX_DECLARE_SWAP_VARIABLES;
  1345. __GLX_SWAP_INT(pc + 0);
  1346. }
  1347. void
  1348. __glXDispSwap_PixelZoom(GLbyte * pc)
  1349. {
  1350. __GLX_DECLARE_SWAP_VARIABLES;
  1351. __GLX_SWAP_FLOAT(pc + 0);
  1352. __GLX_SWAP_FLOAT(pc + 4);
  1353. }
  1354. void
  1355. __glXDispSwap_PixelTransferf(GLbyte * pc)
  1356. {
  1357. __GLX_DECLARE_SWAP_VARIABLES;
  1358. __GLX_SWAP_INT(pc + 0);
  1359. __GLX_SWAP_FLOAT(pc + 4);
  1360. }
  1361. void
  1362. __glXDispSwap_PixelTransferi(GLbyte * pc)
  1363. {
  1364. __GLX_DECLARE_SWAP_VARIABLES;
  1365. __GLX_SWAP_INT(pc + 0);
  1366. __GLX_SWAP_INT(pc + 4);
  1367. }
  1368. void
  1369. __glXDispSwap_PixelMapfv(GLbyte * pc)
  1370. {
  1371. GLint mapsize;
  1372. __GLX_DECLARE_SWAP_VARIABLES;
  1373. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1374. __GLX_SWAP_INT(pc + 4);
  1375. mapsize = *(GLint *) (pc + 4);
  1376. __GLX_SWAP_INT(pc + 0);
  1377. __GLX_SWAP_FLOAT_ARRAY(pc + 8, mapsize);
  1378. }
  1379. void
  1380. __glXDispSwap_PixelMapuiv(GLbyte * pc)
  1381. {
  1382. GLint mapsize;
  1383. __GLX_DECLARE_SWAP_VARIABLES;
  1384. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1385. __GLX_SWAP_INT(pc + 4);
  1386. mapsize = *(GLint *) (pc + 4);
  1387. __GLX_SWAP_INT(pc + 0);
  1388. __GLX_SWAP_INT_ARRAY(pc + 8, mapsize);
  1389. }
  1390. void
  1391. __glXDispSwap_PixelMapusv(GLbyte * pc)
  1392. {
  1393. GLint mapsize;
  1394. __GLX_DECLARE_SWAP_VARIABLES;
  1395. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1396. __GLX_SWAP_INT(pc + 4);
  1397. mapsize = *(GLint *) (pc + 4);
  1398. __GLX_SWAP_INT(pc + 0);
  1399. __GLX_SWAP_SHORT_ARRAY(pc + 8, mapsize);
  1400. }
  1401. void
  1402. __glXDispSwap_ReadBuffer(GLbyte * pc)
  1403. {
  1404. __GLX_DECLARE_SWAP_VARIABLES;
  1405. __GLX_SWAP_INT(pc + 0);
  1406. }
  1407. void
  1408. __glXDispSwap_CopyPixels(GLbyte * pc)
  1409. {
  1410. __GLX_DECLARE_SWAP_VARIABLES;
  1411. __GLX_SWAP_INT(pc + 0);
  1412. __GLX_SWAP_INT(pc + 4);
  1413. __GLX_SWAP_INT(pc + 8);
  1414. __GLX_SWAP_INT(pc + 12);
  1415. __GLX_SWAP_INT(pc + 16);
  1416. }
  1417. void
  1418. __glXDispSwap_DepthRange(GLbyte * pc)
  1419. {
  1420. __GLX_DECLARE_SWAP_VARIABLES;
  1421. #ifdef __GLX_ALIGN64
  1422. if ((unsigned long) (pc) & 7) {
  1423. __GLX_MEM_COPY(pc - 4, pc, 16);
  1424. pc -= 4;
  1425. }
  1426. #endif
  1427. __GLX_SWAP_DOUBLE(pc + 0);
  1428. __GLX_SWAP_DOUBLE(pc + 8);
  1429. }
  1430. void
  1431. __glXDispSwap_Frustum(GLbyte * pc)
  1432. {
  1433. __GLX_DECLARE_SWAP_VARIABLES;
  1434. #ifdef __GLX_ALIGN64
  1435. if ((unsigned long) (pc) & 7) {
  1436. __GLX_MEM_COPY(pc - 4, pc, 48);
  1437. pc -= 4;
  1438. }
  1439. #endif
  1440. __GLX_SWAP_DOUBLE(pc + 0);
  1441. __GLX_SWAP_DOUBLE(pc + 8);
  1442. __GLX_SWAP_DOUBLE(pc + 16);
  1443. __GLX_SWAP_DOUBLE(pc + 24);
  1444. __GLX_SWAP_DOUBLE(pc + 32);
  1445. __GLX_SWAP_DOUBLE(pc + 40);
  1446. }
  1447. void
  1448. __glXDispSwap_LoadIdentity(GLbyte * pc)
  1449. {
  1450. }
  1451. void
  1452. __glXDispSwap_LoadMatrixf(GLbyte * pc)
  1453. {
  1454. __GLX_DECLARE_SWAP_VARIABLES;
  1455. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1456. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 16);
  1457. }
  1458. void
  1459. __glXDispSwap_LoadMatrixd(GLbyte * pc)
  1460. {
  1461. __GLX_DECLARE_SWAP_VARIABLES;
  1462. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1463. #ifdef __GLX_ALIGN64
  1464. if ((unsigned long) (pc) & 7) {
  1465. __GLX_MEM_COPY(pc - 4, pc, 128);
  1466. pc -= 4;
  1467. }
  1468. #endif
  1469. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 16);
  1470. }
  1471. void
  1472. __glXDispSwap_MatrixMode(GLbyte * pc)
  1473. {
  1474. __GLX_DECLARE_SWAP_VARIABLES;
  1475. __GLX_SWAP_INT(pc + 0);
  1476. }
  1477. void
  1478. __glXDispSwap_MultMatrixf(GLbyte * pc)
  1479. {
  1480. __GLX_DECLARE_SWAP_VARIABLES;
  1481. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1482. __GLX_SWAP_FLOAT_ARRAY(pc + 0, 16);
  1483. }
  1484. void
  1485. __glXDispSwap_MultMatrixd(GLbyte * pc)
  1486. {
  1487. __GLX_DECLARE_SWAP_VARIABLES;
  1488. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1489. #ifdef __GLX_ALIGN64
  1490. if ((unsigned long) (pc) & 7) {
  1491. __GLX_MEM_COPY(pc - 4, pc, 128);
  1492. pc -= 4;
  1493. }
  1494. #endif
  1495. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 16);
  1496. }
  1497. void
  1498. __glXDispSwap_Ortho(GLbyte * pc)
  1499. {
  1500. __GLX_DECLARE_SWAP_VARIABLES;
  1501. #ifdef __GLX_ALIGN64
  1502. if ((unsigned long) (pc) & 7) {
  1503. __GLX_MEM_COPY(pc - 4, pc, 48);
  1504. pc -= 4;
  1505. }
  1506. #endif
  1507. __GLX_SWAP_DOUBLE(pc + 0);
  1508. __GLX_SWAP_DOUBLE(pc + 8);
  1509. __GLX_SWAP_DOUBLE(pc + 16);
  1510. __GLX_SWAP_DOUBLE(pc + 24);
  1511. __GLX_SWAP_DOUBLE(pc + 32);
  1512. __GLX_SWAP_DOUBLE(pc + 40);
  1513. }
  1514. void
  1515. __glXDispSwap_PopMatrix(GLbyte * pc)
  1516. {
  1517. }
  1518. void
  1519. __glXDispSwap_PushMatrix(GLbyte * pc)
  1520. {
  1521. }
  1522. void
  1523. __glXDispSwap_Rotated(GLbyte * pc)
  1524. {
  1525. __GLX_DECLARE_SWAP_VARIABLES;
  1526. #ifdef __GLX_ALIGN64
  1527. if ((unsigned long) (pc) & 7) {
  1528. __GLX_MEM_COPY(pc - 4, pc, 32);
  1529. pc -= 4;
  1530. }
  1531. #endif
  1532. __GLX_SWAP_DOUBLE(pc + 0);
  1533. __GLX_SWAP_DOUBLE(pc + 8);
  1534. __GLX_SWAP_DOUBLE(pc + 16);
  1535. __GLX_SWAP_DOUBLE(pc + 24);
  1536. }
  1537. void
  1538. __glXDispSwap_Rotatef(GLbyte * pc)
  1539. {
  1540. __GLX_DECLARE_SWAP_VARIABLES;
  1541. __GLX_SWAP_FLOAT(pc + 0);
  1542. __GLX_SWAP_FLOAT(pc + 4);
  1543. __GLX_SWAP_FLOAT(pc + 8);
  1544. __GLX_SWAP_FLOAT(pc + 12);
  1545. }
  1546. void
  1547. __glXDispSwap_Scaled(GLbyte * pc)
  1548. {
  1549. __GLX_DECLARE_SWAP_VARIABLES;
  1550. #ifdef __GLX_ALIGN64
  1551. if ((unsigned long) (pc) & 7) {
  1552. __GLX_MEM_COPY(pc - 4, pc, 24);
  1553. pc -= 4;
  1554. }
  1555. #endif
  1556. __GLX_SWAP_DOUBLE(pc + 0);
  1557. __GLX_SWAP_DOUBLE(pc + 8);
  1558. __GLX_SWAP_DOUBLE(pc + 16);
  1559. }
  1560. void
  1561. __glXDispSwap_Scalef(GLbyte * pc)
  1562. {
  1563. __GLX_DECLARE_SWAP_VARIABLES;
  1564. __GLX_SWAP_FLOAT(pc + 0);
  1565. __GLX_SWAP_FLOAT(pc + 4);
  1566. __GLX_SWAP_FLOAT(pc + 8);
  1567. }
  1568. void
  1569. __glXDispSwap_Translated(GLbyte * pc)
  1570. {
  1571. __GLX_DECLARE_SWAP_VARIABLES;
  1572. #ifdef __GLX_ALIGN64
  1573. if ((unsigned long) (pc) & 7) {
  1574. __GLX_MEM_COPY(pc - 4, pc, 24);
  1575. pc -= 4;
  1576. }
  1577. #endif
  1578. __GLX_SWAP_DOUBLE(pc + 0);
  1579. __GLX_SWAP_DOUBLE(pc + 8);
  1580. __GLX_SWAP_DOUBLE(pc + 16);
  1581. }
  1582. void
  1583. __glXDispSwap_Translatef(GLbyte * pc)
  1584. {
  1585. __GLX_DECLARE_SWAP_VARIABLES;
  1586. __GLX_SWAP_FLOAT(pc + 0);
  1587. __GLX_SWAP_FLOAT(pc + 4);
  1588. __GLX_SWAP_FLOAT(pc + 8);
  1589. }
  1590. void
  1591. __glXDispSwap_Viewport(GLbyte * pc)
  1592. {
  1593. __GLX_DECLARE_SWAP_VARIABLES;
  1594. __GLX_SWAP_INT(pc + 0);
  1595. __GLX_SWAP_INT(pc + 4);
  1596. __GLX_SWAP_INT(pc + 8);
  1597. __GLX_SWAP_INT(pc + 12);
  1598. }
  1599. void
  1600. __glXDispSwap_PolygonOffset(GLbyte * pc)
  1601. {
  1602. __GLX_DECLARE_SWAP_VARIABLES;
  1603. __GLX_SWAP_FLOAT(pc + 0);
  1604. __GLX_SWAP_FLOAT(pc + 4);
  1605. }
  1606. void
  1607. __glXDispSwap_CopyTexImage1D(GLbyte * pc)
  1608. {
  1609. __GLX_DECLARE_SWAP_VARIABLES;
  1610. __GLX_SWAP_INT(pc + 0);
  1611. __GLX_SWAP_INT(pc + 4);
  1612. __GLX_SWAP_INT(pc + 8);
  1613. __GLX_SWAP_INT(pc + 12);
  1614. __GLX_SWAP_INT(pc + 16);
  1615. __GLX_SWAP_INT(pc + 20);
  1616. __GLX_SWAP_INT(pc + 24);
  1617. }
  1618. void
  1619. __glXDispSwap_CopyTexImage2D(GLbyte * pc)
  1620. {
  1621. __GLX_DECLARE_SWAP_VARIABLES;
  1622. __GLX_SWAP_INT(pc + 0);
  1623. __GLX_SWAP_INT(pc + 4);
  1624. __GLX_SWAP_INT(pc + 8);
  1625. __GLX_SWAP_INT(pc + 12);
  1626. __GLX_SWAP_INT(pc + 16);
  1627. __GLX_SWAP_INT(pc + 20);
  1628. __GLX_SWAP_INT(pc + 24);
  1629. __GLX_SWAP_INT(pc + 28);
  1630. }
  1631. void
  1632. __glXDispSwap_CopyTexSubImage1D(GLbyte * pc)
  1633. {
  1634. __GLX_DECLARE_SWAP_VARIABLES;
  1635. __GLX_SWAP_INT(pc + 0);
  1636. __GLX_SWAP_INT(pc + 4);
  1637. __GLX_SWAP_INT(pc + 8);
  1638. __GLX_SWAP_INT(pc + 12);
  1639. __GLX_SWAP_INT(pc + 16);
  1640. __GLX_SWAP_INT(pc + 20);
  1641. }
  1642. void
  1643. __glXDispSwap_CopyTexSubImage2D(GLbyte * pc)
  1644. {
  1645. __GLX_DECLARE_SWAP_VARIABLES;
  1646. __GLX_SWAP_INT(pc + 0);
  1647. __GLX_SWAP_INT(pc + 4);
  1648. __GLX_SWAP_INT(pc + 8);
  1649. __GLX_SWAP_INT(pc + 12);
  1650. __GLX_SWAP_INT(pc + 16);
  1651. __GLX_SWAP_INT(pc + 20);
  1652. __GLX_SWAP_INT(pc + 24);
  1653. __GLX_SWAP_INT(pc + 28);
  1654. }
  1655. void
  1656. __glXDispSwap_BindTexture(GLbyte * pc)
  1657. {
  1658. __GLX_DECLARE_SWAP_VARIABLES;
  1659. __GLX_SWAP_INT(pc + 0);
  1660. __GLX_SWAP_INT(pc + 4);
  1661. }
  1662. void
  1663. __glXDispSwap_PrioritizeTextures(GLbyte * pc)
  1664. {
  1665. GLsizei n;
  1666. __GLX_DECLARE_SWAP_VARIABLES;
  1667. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1668. __GLX_SWAP_INT(pc + 0);
  1669. n = *(GLsizei *) (pc + 0);
  1670. __GLX_SWAP_INT_ARRAY(pc + 4, n);
  1671. __GLX_SWAP_FLOAT_ARRAY(pc + 4 + n * 4, n);
  1672. }
  1673. void
  1674. __glXDispSwap_Indexubv(GLbyte * pc)
  1675. {
  1676. }
  1677. void
  1678. __glXDispSwap_BlendColor(GLbyte * pc)
  1679. {
  1680. __GLX_DECLARE_SWAP_VARIABLES;
  1681. __GLX_SWAP_FLOAT(pc + 0);
  1682. __GLX_SWAP_FLOAT(pc + 4);
  1683. __GLX_SWAP_FLOAT(pc + 8);
  1684. __GLX_SWAP_FLOAT(pc + 12);
  1685. }
  1686. void
  1687. __glXDispSwap_BlendEquation(GLbyte * pc)
  1688. {
  1689. __GLX_DECLARE_SWAP_VARIABLES;
  1690. __GLX_SWAP_INT(pc + 0);
  1691. }
  1692. void
  1693. __glXDispSwap_ColorTableParameterfv(GLbyte * pc)
  1694. {
  1695. GLenum pname;
  1696. GLint compsize;
  1697. __GLX_DECLARE_SWAP_VARIABLES;
  1698. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1699. __GLX_SWAP_INT(pc + 4);
  1700. pname = *(GLenum *) (pc + 4);
  1701. compsize = __glColorTableParameterfv_size(pname);
  1702. if (compsize < 0)
  1703. compsize = 0;
  1704. __GLX_SWAP_INT(pc + 0);
  1705. __GLX_SWAP_FLOAT_ARRAY(pc + 8, compsize);
  1706. }
  1707. void
  1708. __glXDispSwap_ColorTableParameteriv(GLbyte * pc)
  1709. {
  1710. GLenum pname;
  1711. GLint compsize;
  1712. __GLX_DECLARE_SWAP_VARIABLES;
  1713. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1714. __GLX_SWAP_INT(pc + 4);
  1715. pname = *(GLenum *) (pc + 4);
  1716. compsize = __glColorTableParameteriv_size(pname);
  1717. if (compsize < 0)
  1718. compsize = 0;
  1719. __GLX_SWAP_INT(pc + 0);
  1720. __GLX_SWAP_INT_ARRAY(pc + 8, compsize);
  1721. }
  1722. void
  1723. __glXDispSwap_CopyColorTable(GLbyte * pc)
  1724. {
  1725. __GLX_DECLARE_SWAP_VARIABLES;
  1726. __GLX_SWAP_INT(pc + 0);
  1727. __GLX_SWAP_INT(pc + 4);
  1728. __GLX_SWAP_INT(pc + 8);
  1729. __GLX_SWAP_INT(pc + 12);
  1730. __GLX_SWAP_INT(pc + 16);
  1731. }
  1732. void
  1733. __glXDispSwap_CopyColorSubTable(GLbyte * pc)
  1734. {
  1735. __GLX_DECLARE_SWAP_VARIABLES;
  1736. __GLX_SWAP_INT(pc + 0);
  1737. __GLX_SWAP_INT(pc + 4);
  1738. __GLX_SWAP_INT(pc + 8);
  1739. __GLX_SWAP_INT(pc + 12);
  1740. __GLX_SWAP_INT(pc + 16);
  1741. }
  1742. void
  1743. __glXDispSwap_ConvolutionParameterf(GLbyte * pc)
  1744. {
  1745. __GLX_DECLARE_SWAP_VARIABLES;
  1746. __GLX_SWAP_INT(pc + 0);
  1747. __GLX_SWAP_INT(pc + 4);
  1748. __GLX_SWAP_FLOAT(pc + 8);
  1749. }
  1750. void
  1751. __glXDispSwap_ConvolutionParameterfv(GLbyte * pc)
  1752. {
  1753. GLenum pname;
  1754. GLint compsize;
  1755. __GLX_DECLARE_SWAP_VARIABLES;
  1756. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1757. __GLX_SWAP_INT(pc + 4);
  1758. pname = *(GLenum *) (pc + 4);
  1759. compsize = __glConvolutionParameterfv_size(pname);
  1760. if (compsize < 0)
  1761. compsize = 0;
  1762. __GLX_SWAP_INT(pc + 0);
  1763. __GLX_SWAP_FLOAT_ARRAY(pc + 8, compsize);
  1764. }
  1765. void
  1766. __glXDispSwap_ConvolutionParameteri(GLbyte * pc)
  1767. {
  1768. __GLX_DECLARE_SWAP_VARIABLES;
  1769. __GLX_SWAP_INT(pc + 0);
  1770. __GLX_SWAP_INT(pc + 4);
  1771. __GLX_SWAP_INT(pc + 8);
  1772. }
  1773. void
  1774. __glXDispSwap_ConvolutionParameteriv(GLbyte * pc)
  1775. {
  1776. GLenum pname;
  1777. GLint compsize;
  1778. __GLX_DECLARE_SWAP_VARIABLES;
  1779. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1780. __GLX_SWAP_INT(pc + 4);
  1781. pname = *(GLenum *) (pc + 4);
  1782. compsize = __glConvolutionParameteriv_size(pname);
  1783. if (compsize < 0)
  1784. compsize = 0;
  1785. __GLX_SWAP_INT(pc + 0);
  1786. __GLX_SWAP_INT_ARRAY(pc + 8, compsize);
  1787. }
  1788. void
  1789. __glXDispSwap_CopyConvolutionFilter1D(GLbyte * pc)
  1790. {
  1791. __GLX_DECLARE_SWAP_VARIABLES;
  1792. __GLX_SWAP_INT(pc + 0);
  1793. __GLX_SWAP_INT(pc + 4);
  1794. __GLX_SWAP_INT(pc + 8);
  1795. __GLX_SWAP_INT(pc + 12);
  1796. __GLX_SWAP_INT(pc + 16);
  1797. }
  1798. void
  1799. __glXDispSwap_CopyConvolutionFilter2D(GLbyte * pc)
  1800. {
  1801. __GLX_DECLARE_SWAP_VARIABLES;
  1802. __GLX_SWAP_INT(pc + 0);
  1803. __GLX_SWAP_INT(pc + 4);
  1804. __GLX_SWAP_INT(pc + 8);
  1805. __GLX_SWAP_INT(pc + 12);
  1806. __GLX_SWAP_INT(pc + 16);
  1807. __GLX_SWAP_INT(pc + 20);
  1808. }
  1809. void
  1810. __glXDispSwap_Histogram(GLbyte * pc)
  1811. {
  1812. __GLX_DECLARE_SWAP_VARIABLES;
  1813. __GLX_SWAP_INT(pc + 0);
  1814. __GLX_SWAP_INT(pc + 4);
  1815. __GLX_SWAP_INT(pc + 8);
  1816. }
  1817. void
  1818. __glXDispSwap_Minmax(GLbyte * pc)
  1819. {
  1820. __GLX_DECLARE_SWAP_VARIABLES;
  1821. __GLX_SWAP_INT(pc + 0);
  1822. __GLX_SWAP_INT(pc + 4);
  1823. }
  1824. void
  1825. __glXDispSwap_ResetHistogram(GLbyte * pc)
  1826. {
  1827. __GLX_DECLARE_SWAP_VARIABLES;
  1828. __GLX_SWAP_INT(pc + 0);
  1829. }
  1830. void
  1831. __glXDispSwap_ResetMinmax(GLbyte * pc)
  1832. {
  1833. __GLX_DECLARE_SWAP_VARIABLES;
  1834. __GLX_SWAP_INT(pc + 0);
  1835. }
  1836. void
  1837. __glXDispSwap_CopyTexSubImage3D(GLbyte * pc)
  1838. {
  1839. __GLX_DECLARE_SWAP_VARIABLES;
  1840. __GLX_SWAP_INT(pc + 0);
  1841. __GLX_SWAP_INT(pc + 4);
  1842. __GLX_SWAP_INT(pc + 8);
  1843. __GLX_SWAP_INT(pc + 12);
  1844. __GLX_SWAP_INT(pc + 16);
  1845. __GLX_SWAP_INT(pc + 20);
  1846. __GLX_SWAP_INT(pc + 24);
  1847. __GLX_SWAP_INT(pc + 28);
  1848. __GLX_SWAP_INT(pc + 32);
  1849. }
  1850. void
  1851. __glXDispSwap_ActiveTextureARB(GLbyte * pc)
  1852. {
  1853. __GLX_DECLARE_SWAP_VARIABLES;
  1854. __GLX_SWAP_INT(pc + 0);
  1855. }
  1856. void
  1857. __glXDispSwap_MultiTexCoord1dvARB(GLbyte * pc)
  1858. {
  1859. __GLX_DECLARE_SWAP_VARIABLES;
  1860. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1861. #ifdef __GLX_ALIGN64
  1862. if ((unsigned long) (pc) & 7) {
  1863. __GLX_MEM_COPY(pc - 4, pc, 12);
  1864. pc -= 4;
  1865. }
  1866. #endif
  1867. __GLX_SWAP_INT(pc + 8);
  1868. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 1);
  1869. }
  1870. void
  1871. __glXDispSwap_MultiTexCoord1fvARB(GLbyte * pc)
  1872. {
  1873. __GLX_DECLARE_SWAP_VARIABLES;
  1874. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1875. __GLX_SWAP_INT(pc + 0);
  1876. __GLX_SWAP_FLOAT_ARRAY(pc + 4, 1);
  1877. }
  1878. void
  1879. __glXDispSwap_MultiTexCoord1ivARB(GLbyte * pc)
  1880. {
  1881. __GLX_DECLARE_SWAP_VARIABLES;
  1882. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1883. __GLX_SWAP_INT(pc + 0);
  1884. __GLX_SWAP_INT_ARRAY(pc + 4, 1);
  1885. }
  1886. void
  1887. __glXDispSwap_MultiTexCoord1svARB(GLbyte * pc)
  1888. {
  1889. __GLX_DECLARE_SWAP_VARIABLES;
  1890. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1891. __GLX_SWAP_INT(pc + 0);
  1892. __GLX_SWAP_SHORT_ARRAY(pc + 4, 1);
  1893. }
  1894. void
  1895. __glXDispSwap_MultiTexCoord2dvARB(GLbyte * pc)
  1896. {
  1897. __GLX_DECLARE_SWAP_VARIABLES;
  1898. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1899. #ifdef __GLX_ALIGN64
  1900. if ((unsigned long) (pc) & 7) {
  1901. __GLX_MEM_COPY(pc - 4, pc, 20);
  1902. pc -= 4;
  1903. }
  1904. #endif
  1905. __GLX_SWAP_INT(pc + 16);
  1906. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 2);
  1907. }
  1908. void
  1909. __glXDispSwap_MultiTexCoord2fvARB(GLbyte * pc)
  1910. {
  1911. __GLX_DECLARE_SWAP_VARIABLES;
  1912. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1913. __GLX_SWAP_INT(pc + 0);
  1914. __GLX_SWAP_FLOAT_ARRAY(pc + 4, 2);
  1915. }
  1916. void
  1917. __glXDispSwap_MultiTexCoord2ivARB(GLbyte * pc)
  1918. {
  1919. __GLX_DECLARE_SWAP_VARIABLES;
  1920. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1921. __GLX_SWAP_INT(pc + 0);
  1922. __GLX_SWAP_INT_ARRAY(pc + 4, 2);
  1923. }
  1924. void
  1925. __glXDispSwap_MultiTexCoord2svARB(GLbyte * pc)
  1926. {
  1927. __GLX_DECLARE_SWAP_VARIABLES;
  1928. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1929. __GLX_SWAP_INT(pc + 0);
  1930. __GLX_SWAP_SHORT_ARRAY(pc + 4, 2);
  1931. }
  1932. void
  1933. __glXDispSwap_MultiTexCoord3dvARB(GLbyte * pc)
  1934. {
  1935. __GLX_DECLARE_SWAP_VARIABLES;
  1936. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1937. #ifdef __GLX_ALIGN64
  1938. if ((unsigned long) (pc) & 7) {
  1939. __GLX_MEM_COPY(pc - 4, pc, 28);
  1940. pc -= 4;
  1941. }
  1942. #endif
  1943. __GLX_SWAP_INT(pc + 24);
  1944. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 3);
  1945. }
  1946. void
  1947. __glXDispSwap_MultiTexCoord3fvARB(GLbyte * pc)
  1948. {
  1949. __GLX_DECLARE_SWAP_VARIABLES;
  1950. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1951. __GLX_SWAP_INT(pc + 0);
  1952. __GLX_SWAP_FLOAT_ARRAY(pc + 4, 3);
  1953. }
  1954. void
  1955. __glXDispSwap_MultiTexCoord3ivARB(GLbyte * pc)
  1956. {
  1957. __GLX_DECLARE_SWAP_VARIABLES;
  1958. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1959. __GLX_SWAP_INT(pc + 0);
  1960. __GLX_SWAP_INT_ARRAY(pc + 4, 3);
  1961. }
  1962. void
  1963. __glXDispSwap_MultiTexCoord3svARB(GLbyte * pc)
  1964. {
  1965. __GLX_DECLARE_SWAP_VARIABLES;
  1966. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1967. __GLX_SWAP_INT(pc + 0);
  1968. __GLX_SWAP_SHORT_ARRAY(pc + 4, 3);
  1969. }
  1970. void
  1971. __glXDispSwap_MultiTexCoord4dvARB(GLbyte * pc)
  1972. {
  1973. __GLX_DECLARE_SWAP_VARIABLES;
  1974. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1975. #ifdef __GLX_ALIGN64
  1976. if ((unsigned long) (pc) & 7) {
  1977. __GLX_MEM_COPY(pc - 4, pc, 36);
  1978. pc -= 4;
  1979. }
  1980. #endif
  1981. __GLX_SWAP_INT(pc + 32);
  1982. __GLX_SWAP_DOUBLE_ARRAY(pc + 0, 4);
  1983. }
  1984. void
  1985. __glXDispSwap_MultiTexCoord4fvARB(GLbyte * pc)
  1986. {
  1987. __GLX_DECLARE_SWAP_VARIABLES;
  1988. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1989. __GLX_SWAP_INT(pc + 0);
  1990. __GLX_SWAP_FLOAT_ARRAY(pc + 4, 4);
  1991. }
  1992. void
  1993. __glXDispSwap_MultiTexCoord4ivARB(GLbyte * pc)
  1994. {
  1995. __GLX_DECLARE_SWAP_VARIABLES;
  1996. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  1997. __GLX_SWAP_INT(pc + 0);
  1998. __GLX_SWAP_INT_ARRAY(pc + 4, 4);
  1999. }
  2000. void
  2001. __glXDispSwap_MultiTexCoord4svARB(GLbyte * pc)
  2002. {
  2003. __GLX_DECLARE_SWAP_VARIABLES;
  2004. __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
  2005. __GLX_SWAP_INT(pc + 0);
  2006. __GLX_SWAP_SHORT_ARRAY(pc + 4, 4);
  2007. }