added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / arch / .unmaintained / m68k-native / clib / __fixunsdfsi.c
blob3dcf2d23e92f9daee03ce227fa01a773a1bd5d9d
1 /* $Id$
3 * Code taken from libnix
4 */
6 unsigned long __fixunsdfsi(double x)
7 { if(x<0)
8 return 0;
9 if(x>=0x80000000u)
10 return (signed long)(x-0x80000000u)+0x80000000u;
11 return (signed long)x;