xref: /aosp_15_r20/external/compiler-rt/lib/builtins/arm/aeabi_cfcmpeq_check_nan.c (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1 //===-- lib/arm/aeabi_cfcmpeq_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 __attribute__((pcs("aapcs")))
13 __attribute__((visibility("hidden")))
__aeabi_cfcmpeq_check_nan(float a,float b)14 int __aeabi_cfcmpeq_check_nan(float a, float b) {
15     return __builtin_isnan(a) || __builtin_isnan(b);
16 }
17