repo.or.cz
/
tangerine.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git]
/
arch
/
.unmaintained
/
m68k-native
/
clib
/
__fixunsdfsi.c
blob
3dcf2d23e92f9daee03ce227fa01a773a1bd5d9d
1
/* $Id$
2
*
3
* Code taken from libnix
4
*/
5
6
unsigned long
__fixunsdfsi
(
double
x
)
7
{
if
(
x
<
0
)
8
return
0
;
9
if
(
x
>=
0x80000000
u
)
10
return
(
signed long
)(
x
-
0x80000000
u
)+
0x80000000
u
;
11
return
(
signed long
)
x
;
12
}