1292925Sdim//===-- lib/arm/aeabi_cdcmpeq_helper.c - Helper for cdcmpeq ---------------===//
2292925Sdim//
3292925Sdim//                     The LLVM Compiler Infrastructure
4292925Sdim//
5292925Sdim// This file is dual licensed under the MIT and the University of Illinois Open
6292925Sdim// Source Licenses. See LICENSE.TXT for details.
7292925Sdim//
8292925Sdim//===----------------------------------------------------------------------===//
9292925Sdim
10292925Sdim#include <stdint.h>
11292925Sdim
12292925Sdim__attribute__((pcs("aapcs")))
13292925Sdim__attribute__((visibility("hidden")))
14292925Sdimint __aeabi_cdcmpeq_check_nan(double a, double b) {
15292925Sdim    return __builtin_isnan(a) || __builtin_isnan(b);
16292925Sdim}
17