Print this page
5262 libm needs to be carefully unifdef'd
5268 libm doesn't need to hide symbols which are already local


  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  24  */
  25 /*
  26  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27  * Use is subject to license terms.
  28  */
  29 
  30 #if defined(ELFOBJ)
  31 #pragma weak fmin = __fmin
  32 #endif
  33 
  34 /*
  35  * fmin(x,y) returns the smaller of x and y.  If just one of the
  36  * arguments is NaN, fmin returns the other argument.  If both
  37  * arguments are NaN, fmin returns NaN.
  38  *
  39  * See fmaxf.c for a discussion of implementation trade-offs.
  40  */
  41 
  42 #include "libm.h"       /* for islessequal macro */
  43 
  44 #include "fenv_inlines.h"
  45 #include <stdio.h>
  46 #include <sys/isa_defs.h>
  47 
  48 double
  49 __fmin(double x, double y) {
  50         union {
  51                 unsigned i[2];
  52                 double d;




  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  24  */
  25 /*
  26  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27  * Use is subject to license terms.
  28  */
  29 

  30 #pragma weak fmin = __fmin

  31 
  32 /*
  33  * fmin(x,y) returns the smaller of x and y.  If just one of the
  34  * arguments is NaN, fmin returns the other argument.  If both
  35  * arguments are NaN, fmin returns NaN.
  36  *
  37  * See fmaxf.c for a discussion of implementation trade-offs.
  38  */
  39 
  40 #include "libm.h"       /* for islessequal macro */
  41 
  42 #include "fenv_inlines.h"
  43 #include <stdio.h>
  44 #include <sys/isa_defs.h>
  45 
  46 double
  47 __fmin(double x, double y) {
  48         union {
  49                 unsigned i[2];
  50                 double d;