projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added support for gsinit packing.
[fw/sdcc]
/
device
/
lib
/
_fs2uint.c
1
#include <limits.h>
2
3
/* convert float to unsigned int */
4
unsigned int __fs2uint (float f) {
5
unsigned long ul=__fs2ulong(f);
6
if (ul>=UINT_MAX) return UINT_MAX;
7
return ul;
8
}
9