1236099Sdes/* Compute minimum of two numbers, regarding NaN as missing argument. 2236099Sdes Copyright (C) 1997, 1998, 2002 Free Software Foundation, Inc. 3236099Sdes This file is part of the GNU C Library. 4236099Sdes Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. 5236099Sdes 6236099Sdes The GNU C Library is free software; you can redistribute it and/or 7236099Sdes modify it under the terms of the GNU Lesser General Public 8236099Sdes License as published by the Free Software Foundation; either 9263421Sdes version 2.1 of the License, or (at your option) any later version. 10236099Sdes 11236099Sdes The GNU C Library is distributed in the hope that it will be useful, 12236099Sdes but WITHOUT ANY WARRANTY; without even the implied warranty of 13236099Sdes MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14236099Sdes Lesser General Public License for more details. 15236099Sdes 16236099Sdes You should have received a copy of the GNU Lesser General Public 17236099Sdes License along with the GNU C Library; if not, write to the Free 18236099Sdes Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 19236099Sdes 02111-1307 USA. */ 20236099Sdes 21236099Sdes#include <sysdep.h> 22236099Sdes 23236099Sdes .text 24236099SdesENTRY(__fminl) 25236099Sdes fldt 8(%rsp) // x 26236099Sdes fldt 24(%rsp) // x : y 27236099Sdes 28236099Sdes fucomi %st(0), %st 29263421Sdes fcmovu %st(1), %st // now %st contains y if not NaN, x otherwise 30236099Sdes 31236099Sdes fucomi %st(1), %st 32236099Sdes fcmovnb %st(1), %st 33236099Sdes 34236099Sdes fstp %st(1) 35236099Sdes 36236099Sdes ret 37236099SdesEND(__fminl) 38236099Sdesweak_alias (__fminl, fminl) 39236099Sdes