From 08daf0c23d348e44ad9e5fdcb608738a28c9c404 Mon Sep 17 00:00:00 2001 From: drahn Date: Mon, 6 Nov 2006 15:11:37 +0000 Subject: Copy MI softfloat bits from arm to here, so that they can be shared. --- lib/libc/softfloat/ltdf2.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/libc/softfloat/ltdf2.c (limited to 'lib/libc/softfloat/ltdf2.c') diff --git a/lib/libc/softfloat/ltdf2.c b/lib/libc/softfloat/ltdf2.c new file mode 100644 index 00000000000..07b860d5064 --- /dev/null +++ b/lib/libc/softfloat/ltdf2.c @@ -0,0 +1,22 @@ +/* $OpenBSD: ltdf2.c,v 1.1 2006/11/06 15:11:37 drahn Exp $ */ +/* $NetBSD: ltdf2.c,v 1.1 2000/06/06 08:15:06 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 + +flag __ltdf2(float64, float64); + +flag +__ltdf2(float64 a, float64 b) +{ + + /* libgcc1.c says -(a < b) */ + return -float64_lt(a, b); +} -- cgit v1.2.3-59-g8ed1b