u.l=0x7F800000L; if ( isinf(u.d)==0 ) fail++;
u.l=0x7F800001L; if ( isinf(u.d)!=0 ) fail++;
#endif
/* test int isinff(float) */
u.l=0xFF800000L; if ( isinff(u.f)==0 ) fail++;
u.l=0xFF800001L; if ( isinff(u.f)!=0 ) fail++;
u.l=0x7F800000L; if ( isinff(u.f)==0 ) fail++;
u.l=0x7F800001L; if ( isinff(u.f)!=0 ) fail++;
/* print pass/fail message */
if ( fail==0 )
printf("Test passed\n");
else
printf("Test failed: %d\n", fail);
}
See Also
isnan
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
C/C++ Run-Time Library
3-77
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?