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