]>
git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/ArmSoftFloatLib/Arm/__aeabi_dcmpun.c
0e0bc57e2fb8fe30a7c981b111ae933dcf54bc8e
1 /* $NetBSD: __aeabi_dcmpun.c,v 1.1 2013/04/16 10:37:39 matt Exp $ */
5 * Copyright (c) 2013 - 2014, ARM Limited. All rights reserved.
7 * SPDX-License-Identifier: BSD-2-Clause-Patent
12 * Written by Richard Earnshaw, 2003. This file is in the Public Domain.
15 #include "softfloat-for-gcc.h"
17 #include "softfloat.h"
19 #if defined(LIBC_SCCS) && !defined(lint)
20 __RCSID("$NetBSD: __aeabi_dcmpun.c,v 1.1 2013/04/16 10:37:39 matt Exp $");
21 #endif /* LIBC_SCCS and not lint */
23 int __aeabi_dcmpun(float64
, float64
);
26 __aeabi_dcmpun(float64 a
, float64 b
)
29 * The comparison is unordered if either input is a NaN.
30 * Test for this by comparing each operand with itself.
31 * We must perform both comparisons to correctly check for
34 return !float64_eq(a
, a
) || !float64_eq(b
, b
);