blob: 577f6b2c55355210268c694010bd587ac744d445 [file] [log] [blame]
Pirama Arumuga Nainar799172d2016-03-03 15:50:30 -08001//===-- 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__attribute__((pcs("aapcs")))
13__attribute__((visibility("hidden")))
14int __aeabi_cdcmpeq_check_nan(double a, double b) {
15 return __builtin_isnan(a) || __builtin_isnan(b);
16}