1*3cab2bb3Spatrick //===-- lib/arm/aeabi_cdcmpeq_helper.c - Helper for cdcmpeq ---------------===// 2*3cab2bb3Spatrick // 3*3cab2bb3Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*3cab2bb3Spatrick // See https://llvm.org/LICENSE.txt for license information. 5*3cab2bb3Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*3cab2bb3Spatrick // 7*3cab2bb3Spatrick //===----------------------------------------------------------------------===// 8*3cab2bb3Spatrick 9*3cab2bb3Spatrick #include "../int_lib.h" 10*3cab2bb3Spatrick #include <stdint.h> 11*3cab2bb3Spatrick 12*3cab2bb3Spatrick AEABI_RTABI __attribute__((visibility("hidden"))) int __aeabi_cdcmpeq_check_nan(double a,double b)13*3cab2bb3Spatrick__aeabi_cdcmpeq_check_nan(double a, double b) { 14*3cab2bb3Spatrick return __builtin_isnan(a) || __builtin_isnan(b); 15*3cab2bb3Spatrick } 16