unorddf2.c revision 256281
1178476Sjb/* Software floating-point emulation. 2178476Sjb Return 1 iff a or b is a NaN, 0 otherwise. 3178476Sjb Copyright (C) 2006 Free Software Foundation, Inc. 4178476Sjb This file is part of the GNU C Library. 5178476Sjb Contributed by Joseph Myers (joseph@codesourcery.com). 6178476Sjb 7178476Sjb The GNU C Library is free software; you can redistribute it and/or 8178476Sjb modify it under the terms of the GNU Lesser General Public 9178476Sjb License as published by the Free Software Foundation; either 10178476Sjb version 2.1 of the License, or (at your option) any later version. 11178476Sjb 12178476Sjb In addition to the permissions in the GNU Lesser General Public 13178476Sjb License, the Free Software Foundation gives you unlimited 14178476Sjb permission to link the compiled version of this file into 15178476Sjb combinations with other programs, and to distribute those 16178476Sjb combinations without any restriction coming from the use of this 17178476Sjb file. (The Lesser General Public License restrictions do apply in 18178476Sjb other respects; for example, they cover modification of the file, 19178476Sjb and distribution when not linked into a combine executable.) 20178476Sjb 21178476Sjb The GNU C Library is distributed in the hope that it will be useful, 22178476Sjb but WITHOUT ANY WARRANTY; without even the implied warranty of 23178476Sjb MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 24178476Sjb Lesser General Public License for more details. 25178476Sjb 26178476Sjb You should have received a copy of the GNU Lesser General Public 27178476Sjb License along with the GNU C Library; if not, write to the Free 28178476Sjb Software Foundation, 51 Franklin Street, Fifth Floor, Boston, 29178476Sjb MA 02110-1301, USA. */ 30178476Sjb 31178476Sjb#include "soft-fp.h" 32178476Sjb#include "double.h" 33178476Sjb 34178476Sjbint 35178476Sjb__unorddf2(DFtype a, DFtype b) 36178476Sjb{ 37178476Sjb FP_DECL_D(A); FP_DECL_D(B); 38178476Sjb int r; 39178476Sjb 40178476Sjb FP_UNPACK_RAW_D(A, a); 41178476Sjb FP_UNPACK_RAW_D(B, b); 42178476Sjb FP_CMP_UNORD_D(r, A, B); 43178476Sjb 44178476Sjb return r; 45178476Sjb} 46178476Sjb