annotate gcc/testsuite/gcc.c-torture/compile/980504-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 typedef struct _geom_elem {
kono
parents:
diff changeset
2 double coeffs[6];
kono
parents:
diff changeset
3 } pGeomDefRec, *pGeomDefPtr;
kono
parents:
diff changeset
4 typedef struct _mpgeombanddef {
kono
parents:
diff changeset
5 int yOut;
kono
parents:
diff changeset
6 int in_width;
kono
parents:
diff changeset
7 } mpGeometryBandRec, *mpGeometryBandPtr;
kono
parents:
diff changeset
8 typedef void *pointer;
kono
parents:
diff changeset
9 typedef unsigned char CARD8;
kono
parents:
diff changeset
10 typedef CARD8 BytePixel;
kono
parents:
diff changeset
11 void BiGL_B (OUTP,srcimg,width,sline,pedpvt,pvtband) pointer OUTP;
kono
parents:
diff changeset
12 pointer *srcimg;
kono
parents:
diff changeset
13 register int width;
kono
parents:
diff changeset
14 int sline;
kono
parents:
diff changeset
15 pGeomDefPtr pedpvt; mpGeometryBandPtr pvtband;
kono
parents:
diff changeset
16 {
kono
parents:
diff changeset
17 register float s, t, st;
kono
parents:
diff changeset
18 register int isrcline,isrcpix;
kono
parents:
diff changeset
19 register int srcwidth = pvtband->in_width - 1;
kono
parents:
diff changeset
20 register BytePixel val;
kono
parents:
diff changeset
21 register BytePixel *ptrIn, *ptrJn;
kono
parents:
diff changeset
22 register double a = pedpvt->coeffs[0];
kono
parents:
diff changeset
23 register double c = pedpvt->coeffs[2];
kono
parents:
diff changeset
24 register double srcpix = a * ((double)(0.0000)) + pedpvt->coeffs[1] * (pvtband->yOut + ((double)(0.0000)) ) + pedpvt->coeffs[4];
kono
parents:
diff changeset
25 register double srcline = c * ((double)(0.0000)) + pedpvt->coeffs[3] * (pvtband->yOut + ((double)(0.0000)) ) + pedpvt->coeffs[5];
kono
parents:
diff changeset
26 if ( (isrcpix >= 0) && (isrcpix < srcwidth) )
kono
parents:
diff changeset
27 val = ptrIn[isrcpix] * ((float)1. - s - t + st) + ptrIn[isrcpix+1] * (s - st) + ptrJn[isrcpix] * (t - st) + ptrJn[isrcpix+1] * (st) + (float)0.5 ;
kono
parents:
diff changeset
28 }