#include #include #include #define RES 200 #define NEQNS 4 typedef unsigned char byte; byte pic[RES][RES]; double eqns[NEQNS][6]; byte hashd[NEQNS][6]; void inithashd(void) { byte buf[8]; int i; for(i=0;i= '0' && c <= '9') buf[j] = c-'0'; else if (c >= 'a' && c <= 'f') buf[j] = c-('a'-10); else if (c >= 'A' && c <= 'F') buf[j] = c-('A'-10); else buf[j] = 0; } hashd[i][0] = ( buf[0] << 2 ) | ( buf[1] >> 2 ); hashd[i][1] = ( (buf[1]&3) << 4 ) | buf[2]; hashd[i][2] = ( buf[3] << 2 ) | ( buf[4] >> 2 ); hashd[i][3] = ( (buf[4]&3) << 4 ) | buf[5]; hashd[i][4] = buf[6]; hashd[i][5] = buf[7]; } } void initeqn(int n, double x1, double y1, double x2, double y2, double xc, double yc) { eqns[n][0] = x2-x1; eqns[n][1] = xc+xc-x2-x1; eqns[n][2] = y2-y1; eqns[n][3] = yc+yc-y2-y1; eqns[n][4] = x1; eqns[n][5] = y1; } void initeqns(void) { int i; double x1,x2,y1,y2,xc,yc; for(i=0;i100 && nx>=0 && nx=0 && ny