diff options
Diffstat (limited to 'lib/x86_64/floatdixf.c')
-rw-r--r-- | lib/x86_64/floatdixf.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/x86_64/floatdixf.c b/lib/x86_64/floatdixf.c new file mode 100644 index 000000000000..569f72774001 --- /dev/null +++ b/lib/x86_64/floatdixf.c @@ -0,0 +1,16 @@ +/* This file is distributed under the University of Illinois Open Source + * License. See LICENSE.TXT for details. + */ + +/* long double __floatdixf(di_int a); */ + +#ifdef __x86_64__ + +#include <stdint.h> + +long double __floatdixf(int64_t a) +{ + return (long double)a; +} + +#endif /* __i386__ */ |