diff options
| author | bjh21 <bjh21@NetBSD.org> | 2000-06-06 08:14:49 +0000 |
|---|---|---|
| committer | bjh21 <bjh21@NetBSD.org> | 2000-06-06 08:14:49 +0000 |
| commit | 4472dbe5e3bd91ef2540bada7a7ca7384627ff9b (patch) | |
| tree | 97a08b7679989cbe33efa7be7d08e0aca170599c /lib/libc/softfloat/gtdf2.c | |
| parent | b5321a5a5c084fc20359800194b20c4ca2e8cfa5 (diff) | |
Initial commit of SoftFloat 2a import. This should provide a sensible
mostly-MI floating-point implementation for use by gcc -msoft-float.
It's currently only used by arm26, but should be usable by other ports
without too much hacking, assuming doubles and u_int64_ts are passed and
returned the same way, and FP formats are IEEEish.
Diffstat (limited to 'lib/libc/softfloat/gtdf2.c')
| -rw-r--r-- | lib/libc/softfloat/gtdf2.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/libc/softfloat/gtdf2.c b/lib/libc/softfloat/gtdf2.c new file mode 100644 index 00000000000..c9ba3935261 --- /dev/null +++ b/lib/libc/softfloat/gtdf2.c @@ -0,0 +1,24 @@ +/* $NetBSD: gtdf2.c,v 1.1 2000/06/06 08:15:05 bjh21 Exp $ */ + +/* + * Written by Ben Harris, 2000. This file is in the Public Domain. + */ + +#include "softfloat-for-gcc.h" +#include "milieu.h" +#include "softfloat.h" + +#include <sys/cdefs.h> +#if defined(LIBC_SCCS) && !defined(lint) +__RCSID("$NetBSD: gtdf2.c,v 1.1 2000/06/06 08:15:05 bjh21 Exp $"); +#endif /* LIBC_SCCS and not lint */ + +flag __gtdf2(float64, float64); + +flag +__gtdf2(float64 a, float64 b) +{ + + /* libgcc1.c says a > b */ + return float64_lt(b, a); +} |
