home *** CD-ROM | disk | FTP | other *** search
- #include "common.h"
- #ifdef IEEE_SINGBAS
- #include <inline/mathieeesingbas.h>
- #else
- #include <inline/mathffp.h>
- #include <inline/mathtrans.h>
- #endif
-
- SItype
- __fixsfsi (a)
- FLOAT a;
- {
- #ifdef IEEE_SINGBAS
- return IEEESPFix(a);
- #else
- #if 1
- return SPFix( SPFieee(a));
- #else
- /* don't know.. */
- return SPFix( SPAdd (SPFieee(a), SPFieee( *(long *)(float[]){0.5}) ));
- #endif
- #endif
- }
-