Home | History | Annotate | Line # | Download | only in softfloat
gexf2.c revision 1.2
      1  1.2    he /* $NetBSD: gexf2.c,v 1.2 2004/09/27 10:16:24 he Exp $ */
      2  1.1  jmmv 
      3  1.1  jmmv /*
      4  1.1  jmmv  * Written by Ben Harris, 2000.  This file is in the Public Domain.
      5  1.1  jmmv  */
      6  1.1  jmmv 
      7  1.1  jmmv #include "softfloat-for-gcc.h"
      8  1.1  jmmv #include "milieu.h"
      9  1.1  jmmv #include "softfloat.h"
     10  1.1  jmmv 
     11  1.1  jmmv #include <sys/cdefs.h>
     12  1.1  jmmv #if defined(LIBC_SCCS) && !defined(lint)
     13  1.2    he __RCSID("$NetBSD: gexf2.c,v 1.2 2004/09/27 10:16:24 he Exp $");
     14  1.1  jmmv #endif /* LIBC_SCCS and not lint */
     15  1.1  jmmv 
     16  1.2    he #ifdef FLOATX80
     17  1.2    he 
     18  1.1  jmmv flag __gexf2(floatx80, floatx80);
     19  1.1  jmmv 
     20  1.1  jmmv flag
     21  1.1  jmmv __gexf2(floatx80 a, floatx80 b)
     22  1.1  jmmv {
     23  1.1  jmmv 
     24  1.1  jmmv 	/* libgcc1.c says (a >= b) - 1 */
     25  1.1  jmmv 	return floatx80_le(b, a) - 1;
     26  1.1  jmmv }
     27  1.2    he #endif /* FLOATX80 */
     28