letf2.c revision 256281
1153389Sdes/* $NetBSD: letf2.c,v 1.1 2011/01/17 10:08:35 matt Exp $ */
2153389Sdes
3153389Sdes/*
4153389Sdes * Written by Matt Thomas, 2011.  This file is in the Public Domain.
5153389Sdes */
6153389Sdes
7#include "softfloat-for-gcc.h"
8#include "milieu.h"
9#include "softfloat.h"
10
11#include <sys/cdefs.h>
12__FBSDID("$FreeBSD: stable/10/lib/libc/softfloat/letf2.c 230363 2012-01-20 06:16:14Z das $");
13
14#ifdef FLOAT128
15
16flag __letf2(float128, float128);
17
18flag
19__letf2(float128 a, float128 b)
20{
21
22	/* libgcc1.c says 1 - (a <= b) */
23	return 1 - float128_le(a, b);
24}
25
26#endif /* FLOAT128 */
27