id stringlengths 22 129 | text stringlengths 60 19.5k | arch stringclasses 9
values | syntax stringclasses 5
values | kind stringclasses 4
values | repo stringclasses 32
values | path stringlengths 7 108 | license stringclasses 10
values | commit stringlengths 40 40 | source_host stringclasses 1
value | category stringclasses 15
values | source_url stringlengths 85 192 | line_start int64 1 5.48k | line_end int64 4 5.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bminor/glibc:sysdeps/i386/fpu/e_expl.S:2 | .section .rodata.cst16,"aM",@progbits,16
.p2align 4
#ifdef USE_AS_EXP10L
.type c0,@object
c0: .byte 0, 0, 0, 0, 0, 0, 0x9a, 0xd4, 0x00, 0x40
.byte 0, 0, 0, 0, 0, 0
ASM_SIZE_DIRECTIVE(c0)
.type c1,@object
c1: .byte 0x58, 0x92, 0xfc, 0x15, 0x37, 0x9a, 0x97, 0xf0, 0xef, 0x3f
.byte 0, 0, 0, 0, 0, 0
ASM_SIZE_DIRECTI... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_expl.S | 41 | 100 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:3 | ENTRY(IEEE754_EXPL)
#ifdef USE_AS_EXPM1L
movzwl 4+8(%esp), %eax
xorb $0x80, %ah // invert sign bit (now 1 is "positive")
cmpl $0xc006, %eax // is num positive and exp >= 6 (number is >= 128.0)?
jae HIDDEN_JUMPTARGET (__expl) // (if num is denormal, it is at least >= 64.0)
#endif
fldt 4(%esp)
/* I added the followi... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_expl.S | 81 | 140 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:4 | /* Argument's exponent below -64; avoid spurious underflow if
normal. */
cmpl $0x0001, %eax
jge 2f
/* Force underflow and return the argument, to avoid wrong signs
of zero results from the code below in some rounding modes. */
fld %st
fmul %st
fstp %st
jmp 2f
#else
movzwl 4+8(%esp), %eax
andl $0x7fff... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_expl.S | 121 | 180 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:5 | cfi_adjust_cfa_offset (8)
fstcw 4(%esp)
movl $0xf3ff, %edx
andl 4(%esp), %edx
movl %edx, (%esp)
fldcw (%esp)
frndint /* 1 i */
fld %st(1) /* 2 x */
frndint /* 2 xi */
fldcw 4(%esp)
addl $8, %esp
cfi_adjust_cfa_offset (-8)
fld %st(1) /* 3 i */
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_expl.S | 161 | 220 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:6 | fstp %st(1) /* 1 */
/* Ensure underflow for tiny result. */
fldt MO(cmin) /* 2 cmin */
fld %st(1) /* 3 */
fcompp /* 1 */
fnstsw
sahf
jnc 6f
fld %st
fmul %st
fstp %st
#endif
6: fstp %st(1) /* 0 */
jmp 2f
1:
#ifdef USE_AS_EXPM1L
/* For expm1l, only negative sign gets here. */
fstp %st
fld1
fchs... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_expl.S | 201 | 234 |
bminor/glibc:sysdeps/i386/fpu/e_fmod.S:1 | /*
* Public domain.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
ENTRY(__ieee754_fmod)
fldl 12(%esp)
fldl 4(%esp)
1: fprem
fstsw %ax
sahf
jp 1b
fstp %st(1)
ret
END (__ieee754_fmod)
libm_alias_finite (__ieee754_fmod, __fmod) | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_fmod.S | LGPL-2.1 | 30891f35fa7da832b66d80d0807610df361851f3 | github | libc | https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/fpu/e_fmod.S | 1 | 18 |
bminor/glibc:sysdeps/i386/fpu/e_fmod.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
ENTRY(__ieee754_fmod)
fldl 12(%esp)
fldl 4(%esp)
1: fprem
fstsw %ax
sahf
jp 1b
fstp %st(1)
ret
END (__ieee754_fmod)
libm_alias_finite (__ieee754_fmod, __fmod) | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_fmod.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_fmod.S | 1 | 19 |
bminor/glibc:sysdeps/i386/fpu/e_fmod.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*/
#include <machine/asm.h>
ENTRY(__ieee754_fmod)
fldl 12(%esp)
fldl 4(%esp)
1: fprem
fstsw %ax
sahf
jp 1b
fstp %st(1)
ret
END (__ieee754_fmod)
strong_alias (__ieee754_fmod, __fmod_finite) | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_fmod.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_fmod.S | 1 | 18 |
bminor/glibc:sysdeps/i386/fpu/e_fmodf.S:1 | /*
* Public domain.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
ENTRY(__ieee754_fmodf)
flds 8(%esp)
flds 4(%esp)
1: fprem
fstsw %ax
sahf
jp 1b
fstp %st(1)
ret
END(__ieee754_fmodf)
libm_alias_finite (__ieee754_fmodf, __fmodf) | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_fmodf.S | LGPL-2.1 | 30891f35fa7da832b66d80d0807610df361851f3 | github | libc | https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/fpu/e_fmodf.S | 1 | 18 |
bminor/glibc:sysdeps/i386/fpu/e_fmodf.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
* Adapted for float type by Ulrich Drepper <drepper@cygnus.com>.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
ENTRY(__ieee754_fmodf)
flds 8(%esp)
flds 4(%esp)
1: fprem
fstsw %ax
sahf
jp 1b
fstp %st(1)
ret
END(__ieee754_fmodf)
lib... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_fmodf.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_fmodf.S | 1 | 20 |
bminor/glibc:sysdeps/i386/fpu/e_fmodf.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
* Adapted for float type by Ulrich Drepper <drepper@cygnus.com>.
*/
#include <machine/asm.h>
ENTRY(__ieee754_fmodf)
flds 8(%esp)
flds 4(%esp)
1: fprem
fstsw %ax
sahf
jp 1b
fstp %st(1)
ret
END(__ieee754_fmodf)
strong_alias (__ieee754_fmodf, __f... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_fmodf.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_fmodf.S | 1 | 19 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2021 Free Software Foundation, Inc.
This file is part of the GNU C Library.
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 Fo... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | 30891f35fa7da832b66d80d0807610df361851f3 | github | libc | https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/fpu/e_hypot.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:2 | fxam
fnstsw
movb %ah, %al
orb %ch, %ah
sahf
jc 1f
fmul %st(0) // y * y : x
fxch // x : y * y
fmul %st(0) // x * x : y * y
faddp // x * x + y * y
fsqrt
DBL_NARROW_EVAL_UFLOW_NONNEG
2: ret
// We have to test whether any of the parameters is Inf.
// In this case the result is infinity.
1: andb $0x45, %... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | 30891f35fa7da832b66d80d0807610df361851f3 | github | libc | https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/fpu/e_hypot.S | 41 | 75 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2021 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/fpu/e_hypot.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:2 | movb %ah, %ch
fxam
fnstsw
movb %ah, %al
orb %ch, %ah
sahf
jc 1f
fmul %st(0) // y * y : x
fxch // x : y * y
fmul %st(0) // x * x : y * y
faddp // x * x + y * y
fsqrt
DBL_NARROW_EVAL_UFLOW_NONNEG
2: ret
// We have to test whether any of the parameters is Inf.
// In this case the result is infinity.
1... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/fpu/e_hypot.S | 41 | 76 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_hypot.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/fpu/e_hypot.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:2 | fxam
fnstsw
movb %ah, %al
orb %ch, %ah
sahf
jc 1f
fmul %st(0) // y * y : x
fxch // x : y * y
fmul %st(0) // x * x : y * y
faddp // x * x + y * y
fsqrt
DBL_NARROW_EVAL_UFLOW_NONNEG
2: ret
// We have to test whether any of the parameters is Inf.
// In this case the result is infinity.
1: andb $0x45, %... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/fpu/e_hypot.S | 41 | 75 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/i386/fpu/e_hypot.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/i386/fpu/e_hypot.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/i386/fpu/e_hypot.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/i386/fpu/e_hypot.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/i386/fpu/e_hypot.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | f6987f5aa4c2ef7270bcb0a828808bd3db53520b | github | libc | https://github.com/bminor/glibc/blob/f6987f5aa4c2ef7270bcb0a828808bd3db53520b/sysdeps/i386/fpu/e_hypot.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | 6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c | github | libc | https://github.com/bminor/glibc/blob/6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c/sysdeps/i386/fpu/e_hypot.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:2 | DBL_NARROW_EVAL
2: ret
// We have to test whether any of the parameters is Inf.
// In this case the result is infinity.
1: andb $0x45, %al
cmpb $5, %al
je 3f // jump if y is Inf
andb $0x45, %ch
cmpb $5, %ch
jne 4f // jump if x is not Inf
fxch
3: fstp %st(1)
fabs
jmp 2b
4: testb $1, %al
jnz 5f // y is Na... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | 6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c | github | libc | https://github.com/bminor/glibc/blob/6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c/sysdeps/i386/fpu/e_hypot.S | 41 | 64 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_hypot.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypot.S:2 | // We have to test whether any of the parameters is Inf.
// In this case the result is infinity.
1: andb $0x45, %al
cmpb $5, %al
je 3f // jump if y is Inf
andb $0x45, %ch
cmpb $5, %ch
jne 4f // jump if x is not Inf
fxch
3: fstp %st(1)
fabs
jmp 2b
4: testb $1, %al
jnz 5f // y is NaN
fxch
5: fstp %st(1)
j... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypot.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_hypot.S | 41 | 62 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2021 Free Software Foundation, Inc.
This file is part of the GNU C Library.
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 Fo... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | 30891f35fa7da832b66d80d0807610df361851f3 | github | libc | https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/fpu/e_hypotf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:2 | FLT_NARROW_EVAL
2: ret
// We have to test whether any of the parameters is Inf.
// In this case the result is infinity.
1: andb $0x45, %al
cmpb $5, %al
je 3f // jump if y is Inf
andb $0x45, %ch
cmpb $5, %ch
jne 4f // jump if x is not Inf
fxch
3: fstp %st(1)
fabs
jmp 2b
4: testb $1, %al
jnz 5f // y is Na... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | 30891f35fa7da832b66d80d0807610df361851f3 | github | libc | https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/fpu/e_hypotf.S | 41 | 64 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2021 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/fpu/e_hypotf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:2 | fsqrt
FLT_NARROW_EVAL
2: ret
// We have to test whether any of the parameters is Inf.
// In this case the result is infinity.
1: andb $0x45, %al
cmpb $5, %al
je 3f // jump if y is Inf
andb $0x45, %ch
cmpb $5, %ch
jne 4f // jump if x is not Inf
fxch
3: fstp %st(1)
fabs
jmp 2b
4: testb $1, %al
jnz 5f // ... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/fpu/e_hypotf.S | 41 | 65 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_hypotf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/fpu/e_hypotf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:2 | FLT_NARROW_EVAL
2: ret
// We have to test whether any of the parameters is Inf.
// In this case the result is infinity.
1: andb $0x45, %al
cmpb $5, %al
je 3f // jump if y is Inf
andb $0x45, %ch
cmpb $5, %ch
jne 4f // jump if x is not Inf
fxch
3: fstp %st(1)
fabs
jmp 2b
4: testb $1, %al
jnz 5f // y is Na... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/fpu/e_hypotf.S | 41 | 64 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/i386/fpu/e_hypotf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/i386/fpu/e_hypotf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/i386/fpu/e_hypotf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/i386/fpu/e_hypotf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/i386/fpu/e_hypotf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | 6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c | github | libc | https://github.com/bminor/glibc/blob/6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c/sysdeps/i386/fpu/e_hypotf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:1 | /* Compute the hypothenuse of X and Y.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_hypotf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_hypotf.S:2 | // We have to test whether any of the parameters is Inf.
// In this case the result is infinity.
1: andb $0x45, %al
cmpb $5, %al
je 3f // jump if y is Inf
andb $0x45, %ch
cmpb $5, %ch
jne 4f // jump if x is not Inf
fxch
3: fstp %st(1)
fabs
jmp 2b
4: testb $1, %al
jnz 5f // y is NaN
fxch
5: fstp %st(1)
j... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_hypotf.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_hypotf.S | 41 | 62 |
bminor/glibc:sysdeps/i386/fpu/e_ilogb.S:1 | /*
* Public domain.
*/
#include <machine/asm.h>
RCSID("$NetBSD: s_ilogb.S,v 1.5 1995/10/12 15:53:09 jtc Exp $")
ENTRY(__ieee754_ilogb)
fldl 4(%esp)
/* I added the following ugly construct because ilogb(+-Inf) is
required to return INT_MAX in ISO C99.
-- jakub@redhat.com. */
fxam /* Is NaN or +-Inf? */
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_ilogb.S | LGPL-2.1 | 30891f35fa7da832b66d80d0807610df361851f3 | github | libc | https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/fpu/e_ilogb.S | 1 | 41 |
bminor/glibc:sysdeps/i386/fpu/e_ilogb.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*/
#include <machine/asm.h>
RCSID("$NetBSD: s_ilogb.S,v 1.5 1995/10/12 15:53:09 jtc Exp $")
ENTRY(__ieee754_ilogb)
fldl 4(%esp)
/* I added the following ugly construct because ilogb(+-Inf) is
required to return INT_MAX in ISO C99.
-- jakub@red... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_ilogb.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_ilogb.S | 1 | 42 |
bminor/glibc:sysdeps/i386/fpu/e_ilogbf.S:1 | /*
* Public domain.
*/
#include <machine/asm.h>
RCSID("$NetBSD: s_ilogbf.S,v 1.4 1995/10/22 20:32:43 pk Exp $")
ENTRY(__ieee754_ilogbf)
flds 4(%esp)
/* I added the following ugly construct because ilogb(+-Inf) is
required to return INT_MAX in ISO C99.
-- jakub@redhat.com. */
fxam /* Is NaN or +-Inf? */... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_ilogbf.S | LGPL-2.1 | 30891f35fa7da832b66d80d0807610df361851f3 | github | libc | https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/fpu/e_ilogbf.S | 1 | 41 |
bminor/glibc:sysdeps/i386/fpu/e_ilogbf.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*/
#include <machine/asm.h>
RCSID("$NetBSD: s_ilogbf.S,v 1.4 1995/10/22 20:32:43 pk Exp $")
ENTRY(__ieee754_ilogbf)
flds 4(%esp)
/* I added the following ugly construct because ilogb(+-Inf) is
required to return INT_MAX in ISO C99.
-- jakub@re... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_ilogbf.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_ilogbf.S | 1 | 42 |
bminor/glibc:sysdeps/i386/fpu/e_ilogbl.S:1 | /*
* Public domain.
*/
#include <machine/asm.h>
RCSID("$NetBSD: $")
ENTRY(__ieee754_ilogbl)
fldt 4(%esp)
/* I added the following ugly construct because ilogb(+-Inf) is
required to return INT_MAX in ISO C99.
-- jakub@redhat.com. */
fxam /* Is NaN or +-Inf? */
fstsw %ax
movb $0x45, %dh
andb %... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_ilogbl.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_ilogbl.S | 1 | 41 |
bminor/glibc:sysdeps/i386/fpu/e_ilogbl.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Changes for long double by Ulrich Drepper <drepper@cygnus.com>
* Public domain.
*/
#include <machine/asm.h>
RCSID("$NetBSD: $")
ENTRY(__ieee754_ilogbl)
fldt 4(%esp)
/* I added the following ugly construct because ilogb(+-Inf) is
required to return INT_MAX in I... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_ilogbl.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_ilogbl.S | 1 | 43 |
bminor/glibc:sysdeps/i386/fpu/e_log.S:1 | /*
* Public domain.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1.0
ASM_SIZE_DIRECTIVE(one)
/* It is not important that this constant is precise. It is only
a value which is known to be on the safe side for us... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_log.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log.S:2 | fld %st // x-1 : x-1 : x : log(2)
fabs // |x-1| : x-1 : x : log(2)
fcompl MO(limit) // x-1 : x : log(2)
fnstsw // x-1 : x : log(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log(1) is +0 in all rounding modes.
5: fstp %st(1) // x-1 : log(2)
fyl2xp1 // log(x)
... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_log.S | 41 | 91 |
bminor/glibc:sysdeps/i386/fpu/e_log.S:3 | fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 6f
fabs // log(1) is +0 in all rounding modes.
6: fstp %st(1) // x-1 : log(2)
fyl2xp1 // log(x)
ret
END(__log_finite)
libm_alias_finite (__log_finite, __log) | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_log.S | 81 | 91 |
bminor/glibc:sysdeps/i386/fpu/e_log.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*
* Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1.0
ASM_SIZE_DIRECTIVE(one)
/* It i... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_log.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log.S:2 | sahf
jc 3f // in case x is NaN or +-Inf
4: fsubl MO(one) // x-1 : x : log(2)
fld %st // x-1 : x-1 : x : log(2)
fabs // |x-1| : x-1 : x : log(2)
fcompl MO(limit) // x-1 : x : log(2)
fnstsw // x-1 : x : log(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log(1) is... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_log.S | 41 | 94 |
bminor/glibc:sysdeps/i386/fpu/e_log.S:3 | fnstsw // x-1 : x : log(2)
andb $0x45, %ah
jz 2b
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 6f
fabs // log(1) is +0 in all rounding modes.
6: fstp %st(1) // x-1 : log(2)
fyl2xp1 // log(x)
ret
END(__log_finite)
libm_alias_finite (__log_finite, __log) | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_log.S | 81 | 94 |
bminor/glibc:sysdeps/i386/fpu/e_log.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*
* Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
*/
#include <machine/asm.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1.0
ASM_SIZE_DIRECTIVE(one)
/* It is not important that this const... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log.S | LGPL-2.1 | 01189b083b8ce54fc568fd2ab0dd433d869ede0e | github | libc | https://github.com/bminor/glibc/blob/01189b083b8ce54fc568fd2ab0dd433d869ede0e/sysdeps/i386/fpu/e_log.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log.S:2 | jc 3f // in case x is NaN or +-Inf
4: fsubl MO(one) // x-1 : x : log(2)
fld %st // x-1 : x-1 : x : log(2)
fabs // |x-1| : x-1 : x : log(2)
fcompl MO(limit) // x-1 : x : log(2)
fnstsw // x-1 : x : log(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log(1) is +0 in... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log.S | LGPL-2.1 | 01189b083b8ce54fc568fd2ab0dd433d869ede0e | github | libc | https://github.com/bminor/glibc/blob/01189b083b8ce54fc568fd2ab0dd433d869ede0e/sysdeps/i386/fpu/e_log.S | 41 | 92 |
bminor/glibc:sysdeps/i386/fpu/e_log.S:3 | andb $0x45, %ah
jz 2b
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 6f
fabs // log(1) is +0 in all rounding modes.
6: fstp %st(1) // x-1 : log(2)
fyl2xp1 // log(x)
ret
END(__log_finite) | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log.S | LGPL-2.1 | 01189b083b8ce54fc568fd2ab0dd433d869ede0e | github | libc | https://github.com/bminor/glibc/blob/01189b083b8ce54fc568fd2ab0dd433d869ede0e/sysdeps/i386/fpu/e_log.S | 81 | 92 |
bminor/glibc:sysdeps/i386/fpu/e_log.S:2 | jc 3f // in case x is NaN or +-Inf
4: fsubl MO(one) // x-1 : x : log(2)
fld %st // x-1 : x-1 : x : log(2)
fabs // |x-1| : x-1 : x : log(2)
fcompl MO(limit) // x-1 : x : log(2)
fnstsw // x-1 : x : log(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log(1) is +0 in... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_log.S | 41 | 86 |
bminor/glibc:sysdeps/i386/fpu/e_log10.S:1 | /*
* Public domain.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1.0
ASM_SIZE_DIRECTIVE(one)
/* It is not important that this constant is precise. It is only
a value which is known to be on the safe side for us... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_log10.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log10.S:2 | fld %st // x-1 : x-1 : x : log10(2)
fabs // |x-1| : x-1 : x : log10(2)
fcompl MO(limit) // x-1 : x : log10(2)
fnstsw // x-1 : x : log10(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log10(1) is +0 in all rounding modes.
5: fstp %st(1) // x-1 : log10(2)
fyl2xp1 ... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_log10.S | 41 | 66 |
bminor/glibc:sysdeps/i386/fpu/e_log10.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*
* Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1.0
ASM_SIZE_DIRECTIVE(one)
/* It i... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_log10.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log10.S:2 | sahf
jc 3f // in case x is NaN or ±Inf
4: fsubl MO(one) // x-1 : x : log10(2)
fld %st // x-1 : x-1 : x : log10(2)
fabs // |x-1| : x-1 : x : log10(2)
fcompl MO(limit) // x-1 : x : log10(2)
fnstsw // x-1 : x : log10(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // ... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_log10.S | 41 | 69 |
bminor/glibc:sysdeps/i386/fpu/e_log10.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*
* Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
*/
#include <machine/asm.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1.0
ASM_SIZE_DIRECTIVE(one)
/* It is not important that this const... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_log10.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log10.S:2 | jc 3f // in case x is NaN or ±Inf
4: fsubl MO(one) // x-1 : x : log10(2)
fld %st // x-1 : x-1 : x : log10(2)
fabs // |x-1| : x-1 : x : log10(2)
fcompl MO(limit) // x-1 : x : log10(2)
fnstsw // x-1 : x : log10(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log10(... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_log10.S | 41 | 68 |
bminor/glibc:sysdeps/i386/fpu/e_log10f.S:1 | /*
* Public domain.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1.0
ASM_SIZE_DIRECTIVE(one)
/* It is not important that this constant is precise. It is only
a value which is known to be on the safe side for us... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10f.S | LGPL-2.1 | 30891f35fa7da832b66d80d0807610df361851f3 | github | libc | https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/fpu/e_log10f.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log10f.S:2 | fld %st // x-1 : x-1 : x : log10(2)
fabs // |x-1| : x-1 : x : log10(2)
fcompl MO(limit) // x-1 : x : log10(2)
fnstsw // x-1 : x : log10(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log10(1) is +0 in all rounding modes.
5: fstp %st(1) // x-1 : log10(2)
fyl2xp1 ... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10f.S | LGPL-2.1 | 30891f35fa7da832b66d80d0807610df361851f3 | github | libc | https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/fpu/e_log10f.S | 41 | 66 |
bminor/glibc:sysdeps/i386/fpu/e_log10f.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
* Adapted for float type by Ulrich Drepper <drepper@cygnus.com>.
*
* Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.t... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10f.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_log10f.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log10f.S:2 | fld %st // x : x : log10(2)
sahf
jc 3f // in case x is NaN or ±Inf
4: fsubl MO(one) // x-1 : x : log10(2)
fld %st // x-1 : x-1 : x : log10(2)
fabs // |x-1| : x-1 : x : log10(2)
fcompl MO(limit) // x-1 : x : log10(2)
fnstsw // x-1 : x : log10(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb ... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10f.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_log10f.S | 41 | 70 |
bminor/glibc:sysdeps/i386/fpu/e_log10f.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
* Adapted for float type by Ulrich Drepper <drepper@cygnus.com>.
*
* Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
*/
#include <machine/asm.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1.... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10f.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_log10f.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log10f.S:2 | sahf
jc 3f // in case x is NaN or ±Inf
4: fsubl MO(one) // x-1 : x : log10(2)
fld %st // x-1 : x-1 : x : log10(2)
fabs // |x-1| : x-1 : x : log10(2)
fcompl MO(limit) // x-1 : x : log10(2)
fnstsw // x-1 : x : log10(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // ... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10f.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_log10f.S | 41 | 69 |
bminor/glibc:sysdeps/i386/fpu/e_log10l.S:1 | /*
* Public domain.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1.0
ASM_SIZE_DIRECTIVE(one)
/* It is not important that this constant is precise. It is only
a value which is known to be on the safe side for us... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10l.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_log10l.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log10l.S:2 | fld %st // x-1 : x-1 : x : log10(2)
fabs // |x-1| : x-1 : x : log10(2)
fcompl MO(limit) // x-1 : x : log10(2)
fnstsw // x-1 : x : log10(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log10(1) is +0 in all rounding modes.
5: fstp %st(1) // x-1 : log10(2)
fyl2xp1 ... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10l.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_log10l.S | 41 | 67 |
bminor/glibc:sysdeps/i386/fpu/e_log10l.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*
* Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>.
*
* Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10l.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_log10l.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log10l.S:2 | fnstsw
fld %st // x : x : log10(2)
sahf
jc 3f // in case x is NaN or ±Inf
4: fsubl MO(one) // x-1 : x : log10(2)
fld %st // x-1 : x-1 : x : log10(2)
fabs // |x-1| : x-1 : x : log10(2)
fcompl MO(limit) // x-1 : x : log10(2)
fnstsw // x-1 : x : log10(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %a... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10l.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_log10l.S | 41 | 72 |
bminor/glibc:sysdeps/i386/fpu/e_log10l.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*
* Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>.
*
* Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
*/
#include <machine/asm.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .dou... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10l.S | LGPL-2.1 | 09096b36152dca599ca781b7299d0d662ca74ce7 | github | libc | https://github.com/bminor/glibc/blob/09096b36152dca599ca781b7299d0d662ca74ce7/sysdeps/i386/fpu/e_log10l.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log10l.S:2 | fld %st // x : x : log10(2)
sahf
jc 3f // in case x is NaN or ±Inf
4: fsubl MO(one) // x-1 : x : log10(2)
fld %st // x-1 : x-1 : x : log10(2)
fabs // |x-1| : x-1 : x : log10(2)
fcompl MO(limit) // x-1 : x : log10(2)
fnstsw // x-1 : x : log10(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb ... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10l.S | LGPL-2.1 | 09096b36152dca599ca781b7299d0d662ca74ce7 | github | libc | https://github.com/bminor/glibc/blob/09096b36152dca599ca781b7299d0d662ca74ce7/sysdeps/i386/fpu/e_log10l.S | 41 | 71 |
bminor/glibc:sysdeps/i386/fpu/e_log10l.S:2 | fld %st // x : x : log10(2)
sahf
jc 3f // in case x is NaN or ±Inf
4: fsubl MO(one) // x-1 : x : log10(2)
fld %st // x-1 : x-1 : x : log10(2)
fabs // |x-1| : x-1 : x : log10(2)
fcompl MO(limit) // x-1 : x : log10(2)
fnstsw // x-1 : x : log10(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb ... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log10l.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_log10l.S | 41 | 70 |
bminor/glibc:sysdeps/i386/fpu/e_log2.S:1 | /*
* Public domain.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1.0
ASM_SIZE_DIRECTIVE(one)
/* It is not important that this constant is precise. It is only
a value which is known to be on the safe side for us... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_log2.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log2.S:2 | fld %st // x-1 : x-1 : x : 1
fabs // |x-1| : x-1 : x : 1
fcompl MO(limit) // x-1 : x : 1
fnstsw // x-1 : x : 1
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log2(1) is +0 in all rounding modes.
5: fstp %st(1) // x-1 : 1
fyl2xp1 // log(x)
ret
2: fstp %st(0) // ... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_log2.S | 41 | 66 |
bminor/glibc:sysdeps/i386/fpu/e_log2.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for use as log2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*
* Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_log2.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log2.S:2 | fld %st // x : x : 1
sahf
jc 3f // in case x is NaN or ±Inf
4: fsub %st(2), %st // x-1 : x : 1
fld %st // x-1 : x-1 : x : 1
fabs // |x-1| : x-1 : x : 1
fcompl MO(limit) // x-1 : x : 1
fnstsw // x-1 : x : 1
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log2(1) is... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_log2.S | 41 | 70 |
bminor/glibc:sysdeps/i386/fpu/e_log2.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for use as log2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*
* Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
*/
#include <machine/asm.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_log2.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log2.S:2 | sahf
jc 3f // in case x is NaN or ±Inf
4: fsub %st(2), %st // x-1 : x : 1
fld %st // x-1 : x-1 : x : 1
fabs // |x-1| : x-1 : x : 1
fcompl MO(limit) // x-1 : x : 1
fnstsw // x-1 : x : 1
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log2(1) is +0 in all rounding mod... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_log2.S | 41 | 69 |
bminor/glibc:sysdeps/i386/fpu/e_log2f.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for use as log2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*
* Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
*/
#include <machine/asm.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2f.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_log2f.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log2f.S:2 | sahf
jc 3f // in case x is NaN or ±Inf
4: fsub %st(2), %st // x-1 : x : 1
fld %st // x-1 : x-1 : x : 1
fabs // |x-1| : x-1 : x : 1
fcompl MO(limit) // x-1 : x : 1
fnstsw // x-1 : x : 1
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log2(1) is +0 in all rounding mod... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2f.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_log2f.S | 41 | 69 |
bminor/glibc:sysdeps/i386/fpu/e_log2l.S:1 | /*
* Public domain.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1.0
ASM_SIZE_DIRECTIVE(one)
/* It is not important that this constant is precise. It is only
a value which is known to be on the safe side for us... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2l.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_log2l.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log2l.S:2 | fld %st // x-1 : x-1 : x : 1
fabs // |x-1| : x-1 : x : 1
fcompl MO(limit) // x-1 : x : 1
fnstsw // x-1 : x : 1
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log2(1) is +0 in all rounding modes.
5: fstp %st(1) // x-1 : 1
fyl2xp1 // log(x)
ret
2: fstp %st(0) // ... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2l.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_log2l.S | 41 | 67 |
bminor/glibc:sysdeps/i386/fpu/e_log2l.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for use as log2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*
* Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2l.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_log2l.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log2l.S:2 | fld %st // x : x : 1
sahf
jc 3f // in case x is NaN or ±Inf
4: fsub %st(2), %st // x-1 : x : 1
fld %st // x-1 : x-1 : x : 1
fabs // |x-1| : x-1 : x : 1
fcompl MO(limit) // x-1 : x : 1
fnstsw // x-1 : x : 1
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log2(1) is... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2l.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_log2l.S | 41 | 71 |
bminor/glibc:sysdeps/i386/fpu/e_log2l.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for use as log2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*
* Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
*/
#include <machine/asm.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2l.S | LGPL-2.1 | f00faa4a43706d85ad8d4d2c970d3f52f0f63bfb | github | libc | https://github.com/bminor/glibc/blob/f00faa4a43706d85ad8d4d2c970d3f52f0f63bfb/sysdeps/i386/fpu/e_log2l.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_log2l.S:2 | sahf
jc 3f // in case x is NaN or ±Inf
4: fsub %st(2), %st // x-1 : x : 1
fld %st // x-1 : x-1 : x : 1
fabs // |x-1| : x-1 : x : 1
fcompl MO(limit) // x-1 : x : 1
fnstsw // x-1 : x : 1
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log2(1) is +0 in all rounding mod... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2l.S | LGPL-2.1 | f00faa4a43706d85ad8d4d2c970d3f52f0f63bfb | github | libc | https://github.com/bminor/glibc/blob/f00faa4a43706d85ad8d4d2c970d3f52f0f63bfb/sysdeps/i386/fpu/e_log2l.S | 41 | 70 |
bminor/glibc:sysdeps/i386/fpu/e_log2l.S:2 | sahf
jc 3f // in case x is NaN or ±Inf
4: fsub %st(2), %st // x-1 : x : 1
fld %st // x-1 : x-1 : x : 1
fabs // |x-1| : x-1 : x : 1
fcompl MO(limit) // x-1 : x : 1
fnstsw // x-1 : x : 1
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log2(1) is +0 in all rounding mod... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_log2l.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_log2l.S | 41 | 69 |
bminor/glibc:sysdeps/i386/fpu/e_logf.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
* Adapted for float by Ulrich Drepper <drepper@cygnus.com>.
*
* Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
*/
#include <machine/asm.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1.0
AS... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_logf.S | LGPL-2.1 | 01189b083b8ce54fc568fd2ab0dd433d869ede0e | github | libc | https://github.com/bminor/glibc/blob/01189b083b8ce54fc568fd2ab0dd433d869ede0e/sysdeps/i386/fpu/e_logf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_logf.S:2 | sahf
jc 3f // in case x is NaN or +-Inf
4: fsubl MO(one) // x-1 : x : log(2)
fld %st // x-1 : x-1 : x : log(2)
fabs // |x-1| : x-1 : x : log(2)
fcompl MO(limit) // x-1 : x : log(2)
fnstsw // x-1 : x : log(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log(1) is... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_logf.S | LGPL-2.1 | 01189b083b8ce54fc568fd2ab0dd433d869ede0e | github | libc | https://github.com/bminor/glibc/blob/01189b083b8ce54fc568fd2ab0dd433d869ede0e/sysdeps/i386/fpu/e_logf.S | 41 | 93 |
bminor/glibc:sysdeps/i386/fpu/e_logf.S:3 | fnstsw // x-1 : x : log(2)
andb $0x45, %ah
jz 2b
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 6f
fabs // log(1) is +0 in all rounding modes.
6: fstp %st(1) // x-1 : log(2)
fyl2xp1 // log(x)
ret
END(__logf_finite) | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_logf.S | LGPL-2.1 | 01189b083b8ce54fc568fd2ab0dd433d869ede0e | github | libc | https://github.com/bminor/glibc/blob/01189b083b8ce54fc568fd2ab0dd433d869ede0e/sysdeps/i386/fpu/e_logf.S | 81 | 93 |
bminor/glibc:sysdeps/i386/fpu/e_logf.S:2 | sahf
jc 3f // in case x is NaN or +-Inf
4: fsubl MO(one) // x-1 : x : log(2)
fld %st // x-1 : x-1 : x : log(2)
fabs // |x-1| : x-1 : x : log(2)
fcompl MO(limit) // x-1 : x : log(2)
fnstsw // x-1 : x : log(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 5f
fabs // log(1) is... | x86 | gas-like | handwritten | bminor/glibc | sysdeps/i386/fpu/e_logf.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_logf.S | 41 | 87 |
bminor/glibc:sysdeps/i386/fpu/e_logl.S:1 | /*
* Public domain.
*
*/
#include <machine/asm.h>
#include <libm-alias-finite.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type one,@object
one: .double 1.0
ASM_SIZE_DIRECTIVE(one)
/* It is not important that this constant is precise. It is only
a value which is known to be on the safe side for... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_logl.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_logl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_logl.S:2 | movzwl 4+8(%esp), %eax
cmpl $0xc000, %eax
jae 6f // x <= -2, avoid overflow from -LDBL_MAX - 1.
4: fsubl MO(one) // x-1 : x : log(2)
6: fld %st // x-1 : x-1 : x : log(2)
fabs // |x-1| : x-1 : x : log(2)
fcompl MO(limit) // x-1 : x : log(2)
fnstsw // x-1 : x : log(2)
andb $0x45, %ah
jz 2f
fxam
fnstsw
an... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_logl.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_logl.S | 41 | 96 |
bminor/glibc:sysdeps/i386/fpu/e_logl.S:3 | fabs // |x-1| : x-1 : x : log(2)
fcompl MO(limit) // x-1 : x : log(2)
fnstsw // x-1 : x : log(2)
andb $0x45, %ah
jz 2b
fxam
fnstsw
andb $0x45, %ah
cmpb $0x40, %ah
jne 7f
fabs // log(1) is +0 in all rounding modes.
7: fstp %st(1) // x-1 : log(2)
fyl2xp1 // log(x)
ret
END(__logl_finite)
libm_alias_fi... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_logl.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_logl.S | 81 | 96 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.