blob: fe58bfeb95301fd1f81dd028a64cfe24ae6545c6 [file] [log] [blame]
Franklin Wei5d05b9d2018-02-11 15:34:30 -05001/*
2Copyright (C) 1996-1997 Id Software, Inc.
3
4This program is free software; you can redistribute it and/or
5modify it under the terms of the GNU General Public License
6as published by the Free Software Foundation; either version 2
7of the License, or (at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13See the GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19*/
20//
21// quakeasm.h: general asm header file
22//
23
24//#define GLQUAKE 1
25
Franklin Wei5d05b9d2018-02-11 15:34:30 -050026#if defined(__i386__) && defined(USE_ASM)
27#define id386 1
28#else
29#define id386 0
30#endif
31
32// !!! must be kept the same as in d_iface.h !!!
33#define TRANSPARENT_COLOR 255
34
35#ifndef NeXT
36#ifndef GLQUAKE
37 .extern C(d_zistepu)
38 .extern C(d_pzbuffer)
39 .extern C(d_zistepv)
40 .extern C(d_zrowbytes)
41 .extern C(d_ziorigin)
42 .extern C(r_turb_s)
43 .extern C(r_turb_t)
44 .extern C(r_turb_pdest)
45 .extern C(r_turb_spancount)
46 .extern C(r_turb_turb)
47 .extern C(r_turb_pbase)
48 .extern C(r_turb_sstep)
49 .extern C(r_turb_tstep)
50 .extern C(r_bmodelactive)
51 .extern C(d_sdivzstepu)
52 .extern C(d_tdivzstepu)
53 .extern C(d_sdivzstepv)
54 .extern C(d_tdivzstepv)
55 .extern C(d_sdivzorigin)
56 .extern C(d_tdivzorigin)
57 .extern C(sadjust)
58 .extern C(tadjust)
59 .extern C(bbextents)
60 .extern C(bbextentt)
61 .extern C(cacheblock)
62 .extern C(d_viewbuffer)
63 .extern C(cachewidth)
64 .extern C(d_pzbuffer)
65 .extern C(d_zrowbytes)
66 .extern C(d_zwidth)
67 .extern C(d_scantable)
68 .extern C(r_lightptr)
69 .extern C(r_numvblocks)
70 .extern C(prowdestbase)
71 .extern C(pbasesource)
72 .extern C(r_lightwidth)
73 .extern C(lightright)
74 .extern C(lightrightstep)
75 .extern C(lightdeltastep)
76 .extern C(lightdelta)
77 .extern C(lightright)
78 .extern C(lightdelta)
79 .extern C(sourcetstep)
80 .extern C(surfrowbytes)
81 .extern C(lightrightstep)
82 .extern C(lightdeltastep)
83 .extern C(r_sourcemax)
84 .extern C(r_stepback)
85 .extern C(colormap)
86 .extern C(blocksize)
87 .extern C(sourcesstep)
88 .extern C(lightleft)
89 .extern C(blockdivshift)
90 .extern C(blockdivmask)
91 .extern C(lightleftstep)
92 .extern C(r_origin)
93 .extern C(r_ppn)
94 .extern C(r_pup)
95 .extern C(r_pright)
96 .extern C(ycenter)
97 .extern C(xcenter)
98 .extern C(d_vrectbottom_particle)
99 .extern C(d_vrectright_particle)
100 .extern C(d_vrecty)
101 .extern C(d_vrectx)
102 .extern C(d_pix_shift)
103 .extern C(d_pix_min)
104 .extern C(d_pix_max)
105 .extern C(d_y_aspect_shift)
106 .extern C(screenwidth)
107 .extern C(r_leftclipped)
108 .extern C(r_leftenter)
109 .extern C(r_rightclipped)
110 .extern C(r_rightenter)
111 .extern C(modelorg)
112 .extern C(xscale)
113 .extern C(r_refdef)
114 .extern C(yscale)
115 .extern C(r_leftexit)
116 .extern C(r_rightexit)
117 .extern C(r_lastvertvalid)
118 .extern C(cacheoffset)
119 .extern C(newedges)
120 .extern C(removeedges)
121 .extern C(r_pedge)
122 .extern C(r_framecount)
123 .extern C(r_u1)
124 .extern C(r_emitted)
125 .extern C(edge_p)
126 .extern C(surface_p)
127 .extern C(surfaces)
128 .extern C(r_lzi1)
129 .extern C(r_v1)
130 .extern C(r_ceilv1)
131 .extern C(r_nearzi)
132 .extern C(r_nearzionly)
133 .extern C(edge_aftertail)
134 .extern C(edge_tail)
135 .extern C(current_iv)
136 .extern C(edge_head_u_shift20)
137 .extern C(span_p)
138 .extern C(edge_head)
139 .extern C(fv)
140 .extern C(edge_tail_u_shift20)
141 .extern C(r_apverts)
142 .extern C(r_anumverts)
143 .extern C(aliastransform)
144 .extern C(r_avertexnormals)
145 .extern C(r_plightvec)
146 .extern C(r_ambientlight)
147 .extern C(r_shadelight)
148 .extern C(aliasxcenter)
149 .extern C(aliasycenter)
150 .extern C(a_sstepxfrac)
151 .extern C(r_affinetridesc)
152 .extern C(acolormap)
153 .extern C(d_pcolormap)
154 .extern C(r_affinetridesc)
155 .extern C(d_sfrac)
156 .extern C(d_ptex)
157 .extern C(d_pedgespanpackage)
158 .extern C(d_tfrac)
159 .extern C(d_light)
160 .extern C(d_zi)
161 .extern C(d_pdest)
162 .extern C(d_pz)
163 .extern C(d_aspancount)
164 .extern C(erroradjustup)
165 .extern C(errorterm)
166 .extern C(d_xdenom)
167 .extern C(r_p0)
168 .extern C(r_p1)
169 .extern C(r_p2)
170 .extern C(a_tstepxfrac)
171 .extern C(r_sstepx)
172 .extern C(r_tstepx)
173 .extern C(a_ststepxwhole)
174 .extern C(zspantable)
175 .extern C(skintable)
176 .extern C(r_zistepx)
177 .extern C(erroradjustdown)
178 .extern C(d_countextrastep)
179 .extern C(ubasestep)
180 .extern C(a_ststepxwhole)
181 .extern C(a_tstepxfrac)
182 .extern C(r_lstepx)
183 .extern C(a_spans)
184 .extern C(erroradjustdown)
185 .extern C(d_pdestextrastep)
186 .extern C(d_pzextrastep)
187 .extern C(d_sfracextrastep)
188 .extern C(d_ptexextrastep)
189 .extern C(d_countextrastep)
190 .extern C(d_tfracextrastep)
191 .extern C(d_lightextrastep)
192 .extern C(d_ziextrastep)
193 .extern C(d_pdestbasestep)
194 .extern C(d_pzbasestep)
195 .extern C(d_sfracbasestep)
196 .extern C(d_ptexbasestep)
197 .extern C(ubasestep)
198 .extern C(d_tfracbasestep)
199 .extern C(d_lightbasestep)
200 .extern C(d_zibasestep)
201 .extern C(zspantable)
202 .extern C(r_lstepy)
203 .extern C(r_sstepy)
204 .extern C(r_tstepy)
205 .extern C(r_zistepy)
206 .extern C(D_PolysetSetEdgeTable)
207 .extern C(D_RasterizeAliasPolySmooth)
208
209 .extern float_point5
210 .extern Float2ToThe31nd
211 .extern izistep
212 .extern izi
213 .extern FloatMinus2ToThe31nd
214 .extern float_1
215 .extern float_particle_z_clip
216 .extern float_minus_1
217 .extern float_0
218 .extern fp_16
219 .extern fp_64k
220 .extern fp_1m
221 .extern fp_1m_minus_1
222 .extern fp_8
223 .extern entryvec_table
224 .extern advancetable
225 .extern sstep
226 .extern tstep
227 .extern pspantemp
228 .extern counttemp
229 .extern jumptemp
230 .extern reciprocal_table
231 .extern DP_Count
232 .extern DP_u
233 .extern DP_v
234 .extern DP_32768
235 .extern DP_Color
236 .extern DP_Pix
237 .extern DP_EntryTable
238 .extern pbase
239 .extern s
240 .extern t
241 .extern sfracf
242 .extern tfracf
243 .extern snext
244 .extern tnext
245 .extern spancountminus1
246 .extern zi16stepu
247 .extern sdivz16stepu
248 .extern tdivz16stepu
249 .extern zi8stepu
250 .extern sdivz8stepu
251 .extern tdivz8stepu
252 .extern reciprocal_table_16
253 .extern entryvec_table_16
254 .extern ceil_cw
255 .extern single_cw
256 .extern fp_64kx64k
257 .extern pz
258 .extern spr8entryvec_table
259#endif
260
261 .extern C(snd_scaletable)
262 .extern C(paintbuffer)
263 .extern C(snd_linear_count)
264 .extern C(snd_p)
265 .extern C(snd_vol)
266 .extern C(snd_out)
267 .extern C(vright)
268 .extern C(vup)
269 .extern C(vpn)
270 .extern C(BOPS_Error)
271
272#endif