23 #if (defined __amd64__) || (defined _M_AMD64)
24 #define FULLY_CLIPPED_CACHED 0x8000000000000000ULL
25 #define CLIPPED_NOT_CACHED 0x7FFFFFFFFFFFFFFFULL
26 #define FRAMECOUNT_MASK 0x7FFFFFFFFFFFFFFFULL
28 #define FULLY_CLIPPED_CACHED 0x80000000UL
29 #define CLIPPED_NOT_CACHED 0x7FFFFFFFUL
30 #define FRAMECOUNT_MASK 0x7FFFFFFFUL
65 vec3_t local, transformed;
68 float scale, lzi0, u0, v0;
77 world = &pv0->point[0];
86 lzi0 = 1.0 / transformed[2];
103 ceilv0 = (
int) ceil(v0);
106 world = &pv1->point[0];
115 r_lzi1 = 1.0 / transformed[2];
173 u_step = ((
r_u1 - u0) / (
r_v1 - v0));
174 u = u0 + ((float)v - v0) * u_step;
183 u_step = ((u0 -
r_u1) / (v0 -
r_v1));
184 u =
r_u1 + ((float)v -
r_v1) * u_step;
187 edge->
u_step = u_step * 0x100000;
188 edge->
u = u * 0x100000 + 0xFFFFF;
212 while (pcheck->
next && pcheck->
next->
u < u_check)
213 pcheck = pcheck->
next;
233 for (; clip; clip = clip->
next) {
234 d0 = DotProduct(pv0->point, clip->
normal) - clip->
dist;
235 d1 = DotProduct(pv1->point, clip->
normal) - clip->
dist;
250 LerpVector(pv0->point, pv1->point, f, clipvert.point);
280 LerpVector(pv0->point, pv1->point, f, clipvert.point);
311 if (!pedge_t->
surfs[0])
336 msurfedge_t *surfedge;
338 qboolean makeleftedge, makerightedge;
341 if (fa->texinfo->c.flags & SURF_TRANS_MASK) {
349 if (fa->texinfo->c.flags & SURF_SKY) {
371 for (i = 3, mask = 0x08; i >= 0; i--, mask >>= 1) {
372 if (clipflags & mask) {
382 makeleftedge = makerightedge = qfalse;
385 surfedge = fa->firstsurfedge;
386 for (i = 0; i < fa->numsurfedges; i++, surfedge++) {
413 r_pedge->v[surfedge->vert ^ 1],
418 makeleftedge = qtrue;
420 makerightedge = qtrue;
460 distinv = 1.0 / (pplane->dist - DotProduct(
modelorg, pplane->normal));
486 qboolean makeleftedge, makerightedge;
488 if (psurf->texinfo->c.flags & SURF_TRANS_MASK) {
514 for (i = 3, mask = 0x08; i >= 0; i--, mask >>= 1) {
525 makeleftedge = makerightedge = qfalse;
530 for (; pedges; pedges = pedges->
pnext) {
535 makeleftedge = qtrue;
537 makerightedge = qtrue;
570 pplane = psurf->plane;
574 distinv = 1.0 / (pplane->dist - DotProduct(
modelorg, pplane->normal));