Print this page
5261 libm should stop using synonyms.h


  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  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  23  */
  24 /*
  25  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29         .file "nextafterf.s"
  30 
  31 #include "libm.h"
  32 LIBM_ANSI_PRAGMA_WEAK(nextafterf,function)
  33 #include "libm_synonyms.h"
  34 
  35         .data
  36         .align  4
  37 Fmaxf:  .long   0x7f7fffff
  38 Fminf:  .long   0x1
  39 ftmpf:  .long   0
  40 
  41 
  42         ENTRY(nextafterf)
  43         pushl   %ebp
  44         movl    %esp,%ebp
  45         movl    $0,%eax         /// upper half of %eax must be initialized
  46         flds    12(%ebp)        / y
  47         subl    $4,%esp
  48         flds    8(%ebp)         / x, y
  49         fucom                   / x : y
  50         fstsw   %ax
  51         sahf
  52         jp      .NaN
  53         je      .equal




  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  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  23  */
  24 /*
  25  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29         .file "nextafterf.s"
  30 
  31 #include "libm.h"
  32 LIBM_ANSI_PRAGMA_WEAK(nextafterf,function)

  33 
  34         .data
  35         .align  4
  36 Fmaxf:  .long   0x7f7fffff
  37 Fminf:  .long   0x1
  38 ftmpf:  .long   0
  39 
  40 
  41         ENTRY(nextafterf)
  42         pushl   %ebp
  43         movl    %esp,%ebp
  44         movl    $0,%eax         /// upper half of %eax must be initialized
  45         flds    12(%ebp)        / y
  46         subl    $4,%esp
  47         flds    8(%ebp)         / x, y
  48         fucom                   / x : y
  49         fstsw   %ax
  50         sahf
  51         jp      .NaN
  52         je      .equal