1 1.1 mrg /* Software floating-point emulation. 2 1.1 mrg Return 1 iff a > b, 0 otherwise. 3 1.1.1.3 mrg Copyright (C) 1997-2024 Free Software Foundation, Inc. 4 1.1 mrg Contributed by Richard Henderson (rth (at) cygnus.com) and 5 1.1 mrg Jakub Jelinek (jj (at) ultra.linux.cz). 6 1.1 mrg 7 1.1 mrg This file is free software; you can redistribute it and/or 8 1.1 mrg modify it under the terms of the GNU Lesser General Public 9 1.1 mrg License as published by the Free Software Foundation; either 10 1.1 mrg version 2.1 of the License, or (at your option) any later version. 11 1.1 mrg 12 1.1 mrg In addition to the permissions in the GNU Lesser General Public 13 1.1 mrg License, the Free Software Foundation gives you unlimited 14 1.1 mrg permission to link the compiled version of this file into 15 1.1 mrg combinations with other programs, and to distribute those 16 1.1 mrg combinations without any restriction coming from the use of this 17 1.1 mrg file. (The Lesser General Public License restrictions do apply in 18 1.1 mrg other respects; for example, they cover modification of the file, 19 1.1 mrg and distribution when not linked into a combine executable.) 20 1.1 mrg 21 1.1 mrg This file is distributed in the hope that it will be useful, 22 1.1 mrg but WITHOUT ANY WARRANTY; without even the implied warranty of 23 1.1 mrg MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 24 1.1 mrg Lesser General Public License for more details. 25 1.1 mrg 26 1.1 mrg You should have received a copy of the GNU Lesser General Public 27 1.1 mrg License along with GCC; see the file COPYING.LIB. If not see 28 1.1 mrg <http://www.gnu.org/licenses/>. */ 29 1.1 mrg 30 1.1 mrg #include <soft-fp/soft-fp.h> 31 1.1 mrg #include <soft-fp/single.h> 32 1.1 mrg 33 1.1 mrg CMPtype __pruabi_gtf(SFtype a, SFtype b) 34 1.1 mrg { 35 1.1 mrg FP_DECL_EX; 36 1.1 mrg FP_DECL_S(A); FP_DECL_S(B); 37 1.1 mrg CMPtype r; 38 1.1 mrg 39 1.1 mrg FP_UNPACK_RAW_S(A, a); 40 1.1 mrg FP_UNPACK_RAW_S(B, b); 41 1.1 mrg FP_CMP_S(r, A, B, -2, 2); 42 1.1 mrg FP_HANDLE_EXCEPTIONS; 43 1.1 mrg 44 1.1 mrg return r > 0; 45 1.1 mrg } 46