blob: 0ef7c11d1818d86567ea3d7e56e1b0ec127ee21e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//===-- lib/unordsf2.c - Single-precision comparisons -------------*- C -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#define SINGLE_PRECISION
#include "fp_lib.h"
int __unordsf2(fp_t a, fp_t b) {
const rep_t aAbs = toRep(a) & absMask;
const rep_t bAbs = toRep(b) & absMask;
return aAbs > infRep || bAbs > infRep;
}
|