projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fixed check_syntax(), "break xram r 0x7654" did not work.
[fw/sdcc]
/
device
/
lib
/
_fs2sint.c
1
#include <float.h>
2
3
/* convert float to signed int */
4
signed int __fs2sint (float f) {
5
signed long sl=__fs2slong(f);
6
if (sl>=INT_MAX)
7
return INT_MAX;
8
if (sl<=INT_MIN)
9
return -INT_MIN;
10
return sl;
11
}