1*c36abe0dSDavid Schultz /* $NetBSD: gexf2.c,v 1.2 2004/09/27 10:16:24 he Exp $ */ 2*c36abe0dSDavid Schultz 3*c36abe0dSDavid Schultz /* 4*c36abe0dSDavid Schultz * Written by Ben Harris, 2000. This file is in the Public Domain. 5*c36abe0dSDavid Schultz */ 6*c36abe0dSDavid Schultz 7*c36abe0dSDavid Schultz #include "softfloat-for-gcc.h" 8*c36abe0dSDavid Schultz #include "milieu.h" 9*c36abe0dSDavid Schultz #include "softfloat.h" 10*c36abe0dSDavid Schultz 11*c36abe0dSDavid Schultz #include <sys/cdefs.h> 12*c36abe0dSDavid Schultz __FBSDID("$FreeBSD$"); 13*c36abe0dSDavid Schultz 14*c36abe0dSDavid Schultz #ifdef FLOATX80 15*c36abe0dSDavid Schultz 16*c36abe0dSDavid Schultz flag __gexf2(floatx80, floatx80); 17*c36abe0dSDavid Schultz 18*c36abe0dSDavid Schultz flag 19*c36abe0dSDavid Schultz __gexf2(floatx80 a, floatx80 b) 20*c36abe0dSDavid Schultz { 21*c36abe0dSDavid Schultz 22*c36abe0dSDavid Schultz /* libgcc1.c says (a >= b) - 1 */ 23*c36abe0dSDavid Schultz return floatx80_le(b, a) - 1; 24*c36abe0dSDavid Schultz } 25*c36abe0dSDavid Schultz #endif /* FLOATX80 */ 26