Hitachi SH7750 Programming Manual page 267

High-performance risc engine superh (sh) 32-bit risc mcu/mpu series
Hide thumbs Also See for SH7750:
Table of Contents

Advertisement

{
int abs;
abs = *FPUL & 0x7fffffff;
if(abs < 0x00800000){
if((FPSCR_DN == 1) || (abs == 0x00000000)){
if(sign_of(src) == 0) return(PZERO);
else
}
else
}
else if(abs < 0x7f800000) return(NORM);
else if(abs == 0x7f800000) {
if(sign_of(src) == 0) return(PINF);
else
}
else if(abs < 0x7fc00000)
else
}
FCNVSD Special Cases
FRn
FCNVSD(FPUL FRn)
Note: When DN = 1, the value of a denormalized number is treated as 0.
Possible Exceptions:
• FPU error
• Invalid operation
+NORM
–NORM
+NORM
–NORM
return(NZERO);
return(DENORM);
return(NINF);
return(qNaN);
return(sNaN);
+0
–0
+INF
+0
–0
+INF
Rev. 2.0, 03/99, page 253 of 396
–INF
qNaN
sNaN
–INF
qNaN
Invalid

Advertisement

Table of Contents
loading

Table of Contents