projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
[fw/sdcc]
/
device
/
lib
/
_fs2sint.c
1
#include <limits.h>
2
3
signed long __fs2slong (float f);
4
5
/* convert float to signed int */
6
signed int __fs2sint (float f) {
7
signed long sl=__fs2slong(f);
8
if (sl>=INT_MAX)
9
return INT_MAX;
10
if (sl<=INT_MIN)
11
return -INT_MIN;
12
return sl;
13
}