?? e_powl.s
字號:
/* ix87 specific implementation of pow function. Copyright (C) 1996, 1997, 1998, 1999, 2001, 2004, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */#include <machine/asm.h>#ifdef __ELF__ .section .rodata#else .text#endif .align ALIGNARG(4) ASM_TYPE_DIRECTIVE(infinity,@object)inf_zero:infinity: .byte 0, 0, 0, 0, 0, 0, 0xf0, 0x7f ASM_SIZE_DIRECTIVE(infinity) ASM_TYPE_DIRECTIVE(zero,@object)zero: .double 0.0 ASM_SIZE_DIRECTIVE(zero) ASM_TYPE_DIRECTIVE(minf_mzero,@object)minf_mzero:minfinity: .byte 0, 0, 0, 0, 0, 0, 0xf0, 0xffmzero: .byte 0, 0, 0, 0, 0, 0, 0, 0x80 ASM_SIZE_DIRECTIVE(minf_mzero) ASM_TYPE_DIRECTIVE(one,@object)one: .double 1.0 ASM_SIZE_DIRECTIVE(one) ASM_TYPE_DIRECTIVE(limit,@object)limit: .double 0.29 ASM_SIZE_DIRECTIVE(limit) ASM_TYPE_DIRECTIVE(p63,@object)p63: .byte 0, 0, 0, 0, 0, 0, 0xe0, 0x43 ASM_SIZE_DIRECTIVE(p63)#ifdef PIC#define MO(op) op##(%rip)#else#define MO(op) op#endif .textENTRY(__ieee754_powl) fldt 24(%rsp) // y fxam fnstsw movb %ah, %dl andb $0x45, %ah cmpb $0x40, %ah // is y == 0 ? je 11f cmpb $0x05, %ah // is y == 眎nf ? je 12f cmpb $0x01, %ah // is y == NaN ? je 30f fldt 8(%rsp) // x : y fxam fnstsw movb %ah, %dh andb $0x45, %ah cmpb $0x40, %ah je 20f // x is
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -