xref: /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/builtins/arm/aeabi_cdcmpeq_check_nan.c (revision 3044ee7e6727267b85fd14b16086c9edef1e7d20)
1 //===-- lib/arm/aeabi_cdcmpeq_helper.c - Helper for cdcmpeq ---------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include <stdint.h>
11 
12 AEABI_RTABI __attribute__((visibility("hidden")))
__aeabi_cdcmpeq_check_nan(double a,double b)13 int __aeabi_cdcmpeq_check_nan(double a, double b) {
14     return __builtin_isnan(a) || __builtin_isnan(b);
15 }
16