Print this page
5261 libm should stop using synonyms.h


  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 "nextafter.s"
  30 
  31 #include "libm.h"
  32 LIBM_ANSI_PRAGMA_WEAK(nextafter,function)
  33         .weak _nextafter
  34         .type _nextafter,@function
  35 _nextafter      = __nextafter
  36 #include "libm_synonyms.h"
  37 #include "libm_protos.h"
  38 
  39         .data
  40         .align  8
  41 Fmin:   .long   0x1,0x0
  42 ftmp:   .long   0,0             /// WILL WRITE INTO
  43 
  44 
  45         ENTRY(nextafter)
  46         pushl   %ebp
  47         movl    %esp,%ebp
  48         fldl    16(%ebp)        / y
  49         subl    $8,%esp
  50         fldl    8(%ebp)         / load x
  51         fucom                   / x : y
  52         fstsw   %ax
  53         sahf
  54         jp      .NaN
  55         je      .equal
  56         fstp    %st(1)          / x




  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 "nextafter.s"
  30 
  31 #include "libm.h"
  32 LIBM_ANSI_PRAGMA_WEAK(nextafter,function)
  33         .weak _nextafter
  34         .type _nextafter,@function
  35 _nextafter      = __nextafter

  36 #include "libm_protos.h"
  37 
  38         .data
  39         .align  8
  40 Fmin:   .long   0x1,0x0
  41 ftmp:   .long   0,0             /// WILL WRITE INTO
  42 
  43 
  44         ENTRY(nextafter)
  45         pushl   %ebp
  46         movl    %esp,%ebp
  47         fldl    16(%ebp)        / y
  48         subl    $8,%esp
  49         fldl    8(%ebp)         / load x
  50         fucom                   / x : y
  51         fstsw   %ax
  52         sahf
  53         jp      .NaN
  54         je      .equal
  55         fstp    %st(1)          / x