55 int negone=-1, errornum;
69 ix = (
unsigned int *) &x;
70 if( *ix == 0xbff00000 )
79 void pslaiect_(
float *sigma,
int *n,
float *d,
int *count )
127 float lsigma, tmp, *pd, *pe2;
135 tmp = *pd - lsigma; pd += 2;
136 *count = (*((
int *)&tmp) >> 31) & 1;
137 for(i = 1;i < *n;i++){
138 tmp = *pd - *pe2/tmp - lsigma;
140 *count += ((*((
int *)&tmp)) >> 31) & 1;
180 float x, pinf, pzero, ninf, nzero;
181 int ieflag, *ix, sbit1, sbit2, negone=-1, errornum;
188 pinf = *rmax / *rmin;
193 printf(
"pzero = %g should be zero\n",pzero);
198 sbit1 = (*((
int *)&pzero) >> 31) & 1;
199 sbit2 = (*((
int *)&pinf) >> 31) & 1;
202 printf(
"Sign of positive infinity is incorrect\n");
206 printf(
"Sign of positive zero is incorrect\n");
215 printf(
"nzero = %g should be zero\n",nzero);
219 sbit1 = (*((
int *)&nzero) >> 31) & 1;
220 sbit2 = (*((
int *)&ninf) >> 31) & 1;
223 printf(
"Sign of negative infinity is incorrect\n");
227 printf(
"Sign of negative zero is incorrect\n");