Download this file
16 lines (12 with data), 342 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | /* fix function for singles and doubles FIX( x ) = SGN( x ) * INT( ABS( x ) ) */
#include "fb.h"
/*:::::*/
FBCALL float fb_FIXSingle( float x )
{
return __builtin_floorf( __builtin_fabsf( x ) ) * fb_SGNSingle( x );
}
/*:::::*/
FBCALL double fb_FIXDouble( double x )
{
return __builtin_floor( __builtin_fabs( x ) ) * fb_SGNDouble( x );
}
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.