11.1Smatt/* $NetBSD: __aeabi_fcmpun.c,v 1.1 2013/04/16 10:37:39 matt Exp $ */ 21.1Smatt 31.1Smatt/* 41.1Smatt * Written by Richard Earnshaw, 2003. This file is in the Public Domain. 51.1Smatt */ 61.1Smatt 71.1Smatt#include "softfloat-for-gcc.h" 81.1Smatt#include "milieu.h" 91.1Smatt#include "softfloat.h" 101.1Smatt 111.1Smatt#include <sys/cdefs.h> 121.1Smatt#if defined(LIBC_SCCS) && !defined(lint) 131.1Smatt__RCSID("$NetBSD: __aeabi_fcmpun.c,v 1.1 2013/04/16 10:37:39 matt Exp $"); 141.1Smatt#endif /* LIBC_SCCS and not lint */ 151.1Smatt 161.1Smattint __aeabi_fcmpun(float32, float32); 171.1Smatt 181.1Smattint 191.1Smatt__aeabi_fcmpun(float32 a, float32 b) 201.1Smatt{ 211.1Smatt /* 221.1Smatt * The comparison is unordered if either input is a NaN. 231.1Smatt * Test for this by comparing each operand with itself. 241.1Smatt * We must perform both comparisons to correctly check for 251.1Smatt * signalling NaNs. 261.1Smatt */ 271.1Smatt return !float32_eq(a, a) || !float32_eq(b, b); 281.1Smatt} 29