[BACK]Return to fpgetround.S CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / arch / x86_64 / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/arch/x86_64/gen/fpgetround.S between version 1.3 and 1.4

version 1.3, 2002/06/12 19:17:22 version 1.4, 2011/09/30 17:42:34
Line 8 
Line 8 
 #include <machine/asm.h>  #include <machine/asm.h>
   
 /*  /*
  * XXX store only x87 state. If an application only uses the fp*   * XXX load only x87 state. If an application only uses the fp*
  * interface, this should be in sync with the SSE mxcsr register.   * interface, this should be in sync with the SSE mxcsr register.
  */   */
   
Line 19  ENTRY(_fpgetround)
Line 19  ENTRY(_fpgetround)
 ENTRY(fpgetround)  ENTRY(fpgetround)
 #endif  #endif
         fnstcw -4(%rsp)          fnstcw -4(%rsp)
         movl -4(%rsp),%eax          movl -4(%rsp), %eax
         rorl $10,%eax          andl $0x00000c00, %eax
         andl $3,%eax  
         ret          ret

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

CVSweb <webmaster@jp.NetBSD.org>