diff options
Diffstat (limited to 'lib/x86_64/floatdidf.c')
-rw-r--r-- | lib/x86_64/floatdidf.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/x86_64/floatdidf.c b/lib/x86_64/floatdidf.c new file mode 100644 index 000000000..ecef079b6 --- /dev/null +++ b/lib/x86_64/floatdidf.c @@ -0,0 +1,15 @@ +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. + +// double __floatdidf(di_int a); + +#ifdef __x86_64__ + +#include <stdint.h> + +double __floatdidf(int64_t a) +{ + return (double)a; +} + +#endif // __x86_64__
\ No newline at end of file |