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_atanhf.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2016 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 th... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhf.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/i386/fpu/e_atanhf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhf.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2015 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 th... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhf.S | LGPL-2.1 | 37825319ee64d51bf8b1774f4964e9743eaf5ef6 | github | libc | https://github.com/bminor/glibc/blob/37825319ee64d51bf8b1774f4964e9743eaf5ef6/sysdeps/i386/fpu/e_atanhf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhf.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2015 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 th... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhf.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_atanhf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhf.S:2 | .p2align 2
.type flt_min,@object
flt_min: .byte 0, 0, 0x80, 0
ASM_SIZE_DIRECTIVE(flt_min)
#ifdef PIC
#define MO(op) op##@GOTOFF(%edx)
#else
#define MO(op) op
#endif
.text
ENTRY(__ieee754_atanhf)
movl 4(%esp), %ecx
movl %ecx, %eax
andl $0x7fffffff, %eax
cmpl $0x7f800000, %eax
ja 5f
#ifdef PIC
LOAD_PIC_REG (... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhf.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_atanhf.S | 41 | 100 |
bminor/glibc:sysdeps/i386/fpu/e_atanhf.S:3 | faddp // 2*|x|+(2*|x|^2)/(1-|x|) : 0.5*ln2
fcoml MO(limit) // 2*|x|+(2*|x|^2)/(1-|x|) : 0.5*ln2
fnstsw // 2*|x|+(2*|x|^2)/(1-|x|) : 0.5*ln2
sahf
jae 4f
fyl2xp1 // 0.5*ln2*ld(1+2*|x|+(2*|x|^2)/(1-|x|))
fcoms MO(flt_min)
fnstsw
sahf
jae 6f
subl $4, %esp
cfi_adjust_cfa_offset (4)
fld %st(0)
fmul %st(0)
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhf.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_atanhf.S | 81 | 123 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2026 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 Fr... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:2 | .type ln2_2,@object
ln2_2: .quad 0xb17217f7d1cf79ac /* 0.3465735902799726547086160 */
.short 0x3ffd
ASM_SIZE_DIRECTIVE(ln2_2)
#ifdef PIC
#define MO(op) op##@GOTOFF(%edx)
#else
#define MO(op) op
#endif
.text
ENTRY(__ieee754_atanhl)
movl 12(%esp), %ecx
movl %ecx, %eax
andl $0x7fff, %eax
cmpl $0x7fff, %eax
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_atanhl.S | 41 | 100 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:3 | fcoml MO(half) // |x| : 0.5*ln2
fld %st(0) // |x| : |x| : 0.5*ln2
fnstsw // |x| : |x| : 0.5*ln2
sahf
jae 2f
fadd %st, %st(1) // |x| : 2*|x| : 0.5*ln2
fld %st // |x| : |x| : 2*|x| : 0.5*ln2
fsubrl MO(one) // 1-|x| : |x| : 2*|x| : 0.5*ln2
fxch // |x| : 1-|x| : 2*|x| : 0.5*ln2
fmul %st(2) // 2*|x|^2 : 1-|... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_atanhl.S | 81 | 128 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2025 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 Fr... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 2642002380aafb71a1d3b569b6d7ebeab3284816 | github | libc | https://github.com/bminor/glibc/blob/2642002380aafb71a1d3b569b6d7ebeab3284816/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2024 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 Fr... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | dff8da6b3e89b986bb7f6b1ec18cf65d5972e307 | github | libc | https://github.com/bminor/glibc/blob/dff8da6b3e89b986bb7f6b1ec18cf65d5972e307/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2023 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 Fr... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 6d7e8eda9b85b08f207a6dc6f187e94e4817270f | github | libc | https://github.com/bminor/glibc/blob/6d7e8eda9b85b08f207a6dc6f187e94e4817270f/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2022 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 Fr... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 114e299ca66353fa7be1ee45bb4e1307d3de1fa2 | github | libc | https://github.com/bminor/glibc/blob/114e299ca66353fa7be1ee45bb4e1307d3de1fa2/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2022 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 Fr... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:2 | .type ln2_2,@object
ln2_2: .tfloat 0.3465735902799726547086160
ASM_SIZE_DIRECTIVE(ln2_2)
#ifdef PIC
#define MO(op) op##@GOTOFF(%edx)
#else
#define MO(op) op
#endif
.text
ENTRY(__ieee754_atanhl)
movl 12(%esp), %ecx
movl %ecx, %eax
andl $0x7fff, %eax
cmpl $0x7fff, %eax
je 5f
cmpl $0x3fdf, %eax
jge 7f
// Expo... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/i386/fpu/e_atanhl.S | 41 | 100 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:3 | fld %st(0) // |x| : |x| : 0.5*ln2
fnstsw // |x| : |x| : 0.5*ln2
sahf
jae 2f
fadd %st, %st(1) // |x| : 2*|x| : 0.5*ln2
fld %st // |x| : |x| : 2*|x| : 0.5*ln2
fsubrl MO(one) // 1-|x| : |x| : 2*|x| : 0.5*ln2
fxch // |x| : 1-|x| : 2*|x| : 0.5*ln2
fmul %st(2) // 2*|x|^2 : 1-|x| : 2*|x| : 0.5*ln2
fdivp // ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 581c785bf31bc74430320c7856bbfa3875d025fe | github | libc | https://github.com/bminor/glibc/blob/581c785bf31bc74430320c7856bbfa3875d025fe/sysdeps/i386/fpu/e_atanhl.S | 81 | 127 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-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 Fr... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 30891f35fa7da832b66d80d0807610df361851f3 | github | libc | https://github.com/bminor/glibc/blob/30891f35fa7da832b66d80d0807610df361851f3/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2021 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 th... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:2 | .align ALIGNARG(4)
.type ln2_2,@object
ln2_2: .tfloat 0.3465735902799726547086160
ASM_SIZE_DIRECTIVE(ln2_2)
#ifdef PIC
#define MO(op) op##@GOTOFF(%edx)
#else
#define MO(op) op
#endif
.text
ENTRY(__ieee754_atanhl)
movl 12(%esp), %ecx
movl %ecx, %eax
andl $0x7fff, %eax
cmpl $0x7fff, %eax
je 5f
cmpl $0x3fdf, %... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 2b778ceb4010c28d70de9b8eab20e8d88eed586b | github | libc | https://github.com/bminor/glibc/blob/2b778ceb4010c28d70de9b8eab20e8d88eed586b/sysdeps/i386/fpu/e_atanhl.S | 41 | 100 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2020 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 th... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2020 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 th... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:3 | fld %st(0) // |x| : |x| : 0.5*ln2
fnstsw // |x| : |x| : 0.5*ln2
sahf
jae 2f
fadd %st, %st(1) // |x| : 2*|x| : 0.5*ln2
fld %st // |x| : |x| : 2*|x| : 0.5*ln2
fsubrl MO(one) // 1-|x| : |x| : 2*|x| : 0.5*ln2
fxch // |x| : 1-|x| : 2*|x| : 0.5*ln2
fmul %st(2) // 2*|x|^2 : 1-|x| : 2*|x| : 0.5*ln2
fdivp // ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | d614a7539657941a9201c236b2f15afac18e1213 | github | libc | https://github.com/bminor/glibc/blob/d614a7539657941a9201c236b2f15afac18e1213/sysdeps/i386/fpu/e_atanhl.S | 81 | 127 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2019 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 th... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 5a82c74822d3272df2f5929133680478c0cfb4bd | github | libc | https://github.com/bminor/glibc/blob/5a82c74822d3272df2f5929133680478c0cfb4bd/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2019 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 th... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 04277e02d7f54d3582bebcf8386b317018cd5e1d | github | libc | https://github.com/bminor/glibc/blob/04277e02d7f54d3582bebcf8386b317018cd5e1d/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2018 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 th... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 688903eb3ef01301d239ab753d309d45720610a7 | github | libc | https://github.com/bminor/glibc/blob/688903eb3ef01301d239ab753d309d45720610a7/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2017 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 th... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | bfff8b1becd7d01c074177df7196ab327cd8c844 | github | libc | https://github.com/bminor/glibc/blob/bfff8b1becd7d01c074177df7196ab327cd8c844/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2016 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 th... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 8fa8a330f95c2f39eae7960ccf2825e693789202 | github | libc | https://github.com/bminor/glibc/blob/8fa8a330f95c2f39eae7960ccf2825e693789202/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:3 | fld %st(0) // |x| : |x| : 0.5*ln2
fnstsw // |x| : |x| : 0.5*ln2
sahf
jae 2f
fadd %st, %st(1) // |x| : 2*|x| : 0.5*ln2
fld %st // |x| : |x| : 2*|x| : 0.5*ln2
fsubrl MO(one) // 1-|x| : |x| : 2*|x| : 0.5*ln2
fxch // |x| : 1-|x| : 2*|x| : 0.5*ln2
fmul %st(2) // 2*|x|^2 : 1-|x| : 2*|x| : 0.5*ln2
fdivp // ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | f7a9f785e547bd599dee496fd906a28bcb4ec7fe | github | libc | https://github.com/bminor/glibc/blob/f7a9f785e547bd599dee496fd906a28bcb4ec7fe/sysdeps/i386/fpu/e_atanhl.S | 81 | 126 |
bminor/glibc:sysdeps/i386/fpu/e_atanhl.S:1 | /* ix87 specific implementation of arctanh function.
Copyright (C) 1996-2015 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 th... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_atanhl.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_atanhl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_exp.S:1 | /*
* Public domain.
*/
#include <machine/asm.h>
#include <i386-math-asm.h>
#include <libm-alias-finite.h>
DEFINE_DBL_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
/* e^x = 2^(x * log2(e)) */
ENTRY(__ieee754_exp)
#ifdef PIC
LOAD_PIC_REG (cx)
#endif
fldl 4(%esp)
/* I add... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_exp.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_exp.S:2 | fld1
faddp /* 2^(fract(x * log2(e))) */
fscale /* e^x */
fstp %st(1)
DBL_NARROW_EVAL_UFLOW_NONNEG_NAN
ret
1: testl $0x200, %eax /* Test sign. */
jz 2f /* If positive, jump. */
fstp %st
fldz /* Set result to 0. */
2: ret
END (__ieee754_exp)
ENTRY(__exp_finite)
#ifdef PIC
LOAD_PIC_REG (cx)
#en... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_exp.S | 41 | 74 |
bminor/glibc:sysdeps/i386/fpu/e_exp.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*/
#include <machine/asm.h>
#include <i386-math-asm.h>
#include <libm-alias-finite.h>
DEFINE_DBL_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
/* e^x = 2^(x * log2(e)) */
ENTRY(__ieee754_exp)
#ifdef PIC
LO... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_exp.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_exp.S:2 | f2xm1 /* 2^(fract(x * log2(e))) - 1 */
fld1
faddp /* 2^(fract(x * log2(e))) */
fscale /* e^x */
fstp %st(1)
DBL_NARROW_EVAL_UFLOW_NONNEG_NAN
ret
1: testl $0x200, %eax /* Test sign. */
jz 2f /* If positive, jump. */
fstp %st
fldz /* Set result to 0. */
2: ret
END (__ieee754_exp)
ENTRY(__exp... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_exp.S | 41 | 75 |
bminor/glibc:sysdeps/i386/fpu/e_exp.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*/
#include <machine/asm.h>
#include <i386-math-asm.h>
DEFINE_DBL_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
/* e^x = 2^(x * log2(e)) */
ENTRY(__ieee754_exp)
#ifdef PIC
LOAD_PIC_REG (cx)
#endif
fldl 4(... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp.S | LGPL-2.1 | 6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c | github | libc | https://github.com/bminor/glibc/blob/6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c/sysdeps/i386/fpu/e_exp.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_exp.S:2 | fld1
faddp /* 2^(fract(x * log2(e))) */
fscale /* e^x */
fstp %st(1)
DBL_NARROW_EVAL_UFLOW_NONNEG_NAN
ret
1: testl $0x200, %eax /* Test sign. */
jz 2f /* If positive, jump. */
fstp %st
fldz /* Set result to 0. */
2: ret
END (__ieee754_exp)
ENTRY(__exp_finite)
#ifdef PIC
LOAD_PIC_REG (cx)
#en... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp.S | LGPL-2.1 | 6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c | github | libc | https://github.com/bminor/glibc/blob/6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c/sysdeps/i386/fpu/e_exp.S | 41 | 73 |
bminor/glibc:sysdeps/i386/fpu/e_exp.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*/
#include <machine/asm.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type dbl_min,@object
dbl_min: .byte 0, 0, 0, 0, 0, 0, 0x10, 0
ASM_SIZE_DIRECTIVE(dbl_min)
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp.S | LGPL-2.1 | de5e81691c80468ff97c5260b4020aeaecfe418d | github | libc | https://github.com/bminor/glibc/blob/de5e81691c80468ff97c5260b4020aeaecfe418d/sysdeps/i386/fpu/e_exp.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_exp.S:2 | frndint /* int(x * log2(e)) */
fsubr %st,%st(1) /* fract(x * log2(e)) */
fxch
f2xm1 /* 2^(fract(x * log2(e))) - 1 */
fld1
faddp /* 2^(fract(x * log2(e))) */
fscale /* e^x */
fstp %st(1)
fldl MO(dbl_min)
fld %st(1)
fucompp
fnstsw
sahf
jnc 3f
subl $8, %esp
cfi_adjust_cfa_offset (8)
fld %st(0)... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp.S | LGPL-2.1 | de5e81691c80468ff97c5260b4020aeaecfe418d | github | libc | https://github.com/bminor/glibc/blob/de5e81691c80468ff97c5260b4020aeaecfe418d/sysdeps/i386/fpu/e_exp.S | 41 | 100 |
bminor/glibc:sysdeps/i386/fpu/e_exp.S:3 | frndint /* int(x * log2(e)) */
fsubr %st,%st(1) /* fract(x * log2(e)) */
fxch
f2xm1 /* 2^(fract(x * log2(e))) - 1 */
fld1
faddp /* 2^(fract(x * log2(e))) */
fscale /* e^x */
fstp %st(1)
fldl MO(dbl_min)
fld %st(1)
fucompp
fnstsw
sahf
jnc 4f
subl $8, %esp
cfi_adjust_cfa_offset (8)
fld %st(0)... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp.S | LGPL-2.1 | de5e81691c80468ff97c5260b4020aeaecfe418d | github | libc | https://github.com/bminor/glibc/blob/de5e81691c80468ff97c5260b4020aeaecfe418d/sysdeps/i386/fpu/e_exp.S | 81 | 105 |
bminor/glibc:sysdeps/i386/fpu/e_exp.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*/
#include <machine/asm.h>
/* e^x = 2^(x * log2(e)) */
ENTRY(__ieee754_exp)
fldl 4(%esp)
/* I added the following ugly construct because exp(+-Inf) resulted
in NaN. The ugliness results from the bright minds at Intel.
For the i686 the code c... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_exp.S | 1 | 56 |
bminor/glibc:sysdeps/i386/fpu/e_exp10.S:1 | #include <machine/asm.h>
#include <i386-math-asm.h>
#include <libm-alias-finite.h>
DEFINE_DBL_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
/* 10^x = 2^(x * log2(10)) */
ENTRY(__ieee754_exp10)
#ifdef PIC
LOAD_PIC_REG (cx)
#endif
fldl 4(%esp)
/* I added the following ugly ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp10.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_exp10.S | 1 | 50 |
bminor/glibc:sysdeps/i386/fpu/e_exp10.S:1 | /*
* Written by Ulrich Drepper <drepper@cygnus.com>.
*/
#include <machine/asm.h>
#include <i386-math-asm.h>
#include <libm-alias-finite.h>
DEFINE_DBL_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
/* 10^x = 2^(x * log2(10)) */
ENTRY(__ieee754_exp10)
#ifdef PIC
LOAD_PIC_R... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp10.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_exp10.S | 1 | 54 |
bminor/glibc:sysdeps/i386/fpu/e_exp10.S:1 | /*
* Written by Ulrich Drepper <drepper@cygnus.com>.
*/
#include <machine/asm.h>
#include <i386-math-asm.h>
DEFINE_DBL_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
/* 10^x = 2^(x * log2(10)) */
ENTRY(__ieee754_exp10)
#ifdef PIC
LOAD_PIC_REG (cx)
#endif
fldl 4(%esp)
/*... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp10.S | LGPL-2.1 | 6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c | github | libc | https://github.com/bminor/glibc/blob/6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c/sysdeps/i386/fpu/e_exp10.S | 1 | 53 |
bminor/glibc:sysdeps/i386/fpu/e_exp10.S:1 | /*
* Written by Ulrich Drepper <drepper@cygnus.com>.
*/
#include <machine/asm.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type dbl_min,@object
dbl_min: .byte 0, 0, 0, 0, 0, 0, 0x10, 0
ASM_SIZE_DIRECTIVE(dbl_min)
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
/* ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp10.S | LGPL-2.1 | 828bf6828b048b1482e95f84ca92e5fe0edcdc0c | github | libc | https://github.com/bminor/glibc/blob/828bf6828b048b1482e95f84ca92e5fe0edcdc0c/sysdeps/i386/fpu/e_exp10.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_exp10.S:2 | fsubr %st,%st(1) /* fract(x * log2(10)) */
fxch
f2xm1 /* 2^(fract(x * log2(10))) - 1 */
fld1
faddp /* 2^(fract(x * log2(10))) */
fscale /* e^x */
fstp %st(1)
fldl MO(dbl_min)
fld %st(1)
fucompp
fnstsw
sahf
jnc 3f
subl $8, %esp
cfi_adjust_cfa_offset (8)
fld %st(0)
fmul %st(0)
fstpl (%esp)
fst... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp10.S | LGPL-2.1 | 828bf6828b048b1482e95f84ca92e5fe0edcdc0c | github | libc | https://github.com/bminor/glibc/blob/828bf6828b048b1482e95f84ca92e5fe0edcdc0c/sysdeps/i386/fpu/e_exp10.S | 41 | 71 |
bminor/glibc:sysdeps/i386/fpu/e_exp10.S:1 | /*
* Written by Ulrich Drepper <drepper@cygnus.com>.
*/
#include <machine/asm.h>
/* 10^x = 2^(x * log2(10)) */
ENTRY(__ieee754_exp10)
fldl 4(%esp)
/* I added the following ugly construct because exp(+-Inf) resulted
in NaN. The ugliness results from the bright minds at Intel.
For the i686 the code can be wri... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp10.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_exp10.S | 1 | 39 |
bminor/glibc:sysdeps/i386/fpu/e_exp10f.S:1 | /*
* Written by Ulrich Drepper.
*/
#include <machine/asm.h>
#include <i386-math-asm.h>
#include <libm-alias-finite.h>
DEFINE_FLT_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
/* 10^x = 2^(x * log2(10)) */
ENTRY(__ieee754_exp10f)
#ifdef PIC
LOAD_PIC_REG (cx)
#endif
flds... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp10f.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_exp10f.S | 1 | 54 |
bminor/glibc:sysdeps/i386/fpu/e_exp10f.S:1 | /*
* Written by Ulrich Drepper.
*/
#include <machine/asm.h>
#include <i386-math-asm.h>
DEFINE_FLT_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
/* 10^x = 2^(x * log2(10)) */
ENTRY(__ieee754_exp10f)
#ifdef PIC
LOAD_PIC_REG (cx)
#endif
flds 4(%esp)
/* I added the followi... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp10f.S | LGPL-2.1 | 6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c | github | libc | https://github.com/bminor/glibc/blob/6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c/sysdeps/i386/fpu/e_exp10f.S | 1 | 53 |
bminor/glibc:sysdeps/i386/fpu/e_exp10f.S:1 | /*
* Written by Ulrich Drepper.
*/
#include <machine/asm.h>
.section .rodata.cst4,"aM",@progbits,4
.p2align 2
.type flt_min,@object
flt_min: .byte 0, 0, 0x80, 0
ASM_SIZE_DIRECTIVE(flt_min)
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
/* 10^x = 2^(x * log2(10)) */
ENTRY(... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp10f.S | LGPL-2.1 | 828bf6828b048b1482e95f84ca92e5fe0edcdc0c | github | libc | https://github.com/bminor/glibc/blob/828bf6828b048b1482e95f84ca92e5fe0edcdc0c/sysdeps/i386/fpu/e_exp10f.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_exp10f.S:2 | fsubr %st,%st(1) /* fract(x * log2(10)) */
fxch
f2xm1 /* 2^(fract(x * log2(10))) - 1 */
fld1
faddp /* 2^(fract(x * log2(10))) */
fscale /* e^x */
fstp %st(1)
flds MO(flt_min)
fld %st(1)
fucompp
fnstsw
sahf
jnc 3f
subl $4, %esp
cfi_adjust_cfa_offset (4)
fld %st(0)
fmul %st(0)
fstps (%esp)
fst... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp10f.S | LGPL-2.1 | 828bf6828b048b1482e95f84ca92e5fe0edcdc0c | github | libc | https://github.com/bminor/glibc/blob/828bf6828b048b1482e95f84ca92e5fe0edcdc0c/sysdeps/i386/fpu/e_exp10f.S | 41 | 71 |
bminor/glibc:sysdeps/i386/fpu/e_exp10f.S:1 | /*
* Written by Ulrich Drepper.
*/
#include <machine/asm.h>
/* 10^x = 2^(x * log2(10)) */
ENTRY(__ieee754_exp10f)
flds 4(%esp)
/* I added the following ugly construct because exp(+-Inf) resulted
in NaN. The ugliness results from the bright minds at Intel.
For the i686 the code can be written better.
-- d... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp10f.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_exp10f.S | 1 | 39 |
bminor/glibc:sysdeps/i386/fpu/e_exp2.S:1 | /*
* Public domain.
*/
#include <machine/asm.h>
#include <i386-math-asm.h>
#include <libm-alias-finite.h>
DEFINE_DBL_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
ENTRY(__ieee754_exp2)
#ifdef PIC
LOAD_PIC_REG (cx)
#endif
fldl 4(%esp)
/* I added the following ugly const... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_exp2.S | 1 | 51 |
bminor/glibc:sysdeps/i386/fpu/e_exp2.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for exp2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*/
#include <machine/asm.h>
#include <i386-math-asm.h>
#include <libm-alias-finite.h>
DEFINE_DBL_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
ENTR... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_exp2.S | 1 | 53 |
bminor/glibc:sysdeps/i386/fpu/e_exp2.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for exp2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*/
#include <machine/asm.h>
#include <i386-math-asm.h>
DEFINE_DBL_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
ENTRY(__ieee754_exp2)
#ifdef PIC
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2.S | LGPL-2.1 | 6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c | github | libc | https://github.com/bminor/glibc/blob/6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c/sysdeps/i386/fpu/e_exp2.S | 1 | 52 |
bminor/glibc:sysdeps/i386/fpu/e_exp2.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for exp2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*/
#include <machine/asm.h>
.section .rodata.cst8,"aM",@progbits,8
.p2align 3
.type dbl_min,@object
dbl_min: .byte 0, 0, 0, 0, 0, 0, 0x10, 0
ASM_SIZE_DIRECTIVE(dbl_min)
#ifdef PIC
# def... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2.S | LGPL-2.1 | 903af5af9a0404c1dfeb7b4db6d5a23a1e45593f | github | libc | https://github.com/bminor/glibc/blob/903af5af9a0404c1dfeb7b4db6d5a23a1e45593f/sysdeps/i386/fpu/e_exp2.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_exp2.S:2 | fxch
f2xm1 /* 2^(fract(x)) - 1 */
fld1
faddp /* 2^(fract(x)) */
fscale /* e^x */
fstp %st(1)
fldl MO(dbl_min)
fld %st(1)
fucompp
fnstsw
sahf
jnc 3f
subl $8, %esp
cfi_adjust_cfa_offset (8)
fld %st(0)
fmul %st(0)
fstpl (%esp)
fstpl (%esp)
fldl (%esp)
addl $8, %esp
cfi_adjust_cfa_offset (-8)
3... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2.S | LGPL-2.1 | 903af5af9a0404c1dfeb7b4db6d5a23a1e45593f | github | libc | https://github.com/bminor/glibc/blob/903af5af9a0404c1dfeb7b4db6d5a23a1e45593f/sysdeps/i386/fpu/e_exp2.S | 41 | 70 |
bminor/glibc:sysdeps/i386/fpu/e_exp2.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for exp2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*/
#include <machine/asm.h>
ENTRY(__ieee754_exp2)
fldl 4(%esp)
/* I added the following ugly construct because exp(+-Inf) resulted
in NaN. The ugliness results from the bright minds at I... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_exp2.S | 1 | 38 |
bminor/glibc:sysdeps/i386/fpu/e_exp2f.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for exp2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*/
#include <machine/asm.h>
#include <i386-math-asm.h>
DEFINE_FLT_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
ENTRY(__ieee754_exp2f)
#ifdef PIC
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2f.S | LGPL-2.1 | 6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c | github | libc | https://github.com/bminor/glibc/blob/6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c/sysdeps/i386/fpu/e_exp2f.S | 1 | 52 |
bminor/glibc:sysdeps/i386/fpu/e_exp2f.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for exp2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*/
#include <machine/asm.h>
.section .rodata.cst4,"aM",@progbits,4
.p2align 2
.type flt_min,@object
flt_min: .byte 0, 0, 0x80, 0
ASM_SIZE_DIRECTIVE(flt_min)
#ifdef PIC
# define MO(op) o... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2f.S | LGPL-2.1 | 903af5af9a0404c1dfeb7b4db6d5a23a1e45593f | github | libc | https://github.com/bminor/glibc/blob/903af5af9a0404c1dfeb7b4db6d5a23a1e45593f/sysdeps/i386/fpu/e_exp2f.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_exp2f.S:2 | fxch
f2xm1 /* 2^(fract(x)) - 1 */
fld1
faddp /* 2^(fract(x)) */
fscale /* e^x */
fstp %st(1)
flds MO(flt_min)
fld %st(1)
fucompp
fnstsw
sahf
jnc 3f
subl $4, %esp
cfi_adjust_cfa_offset (4)
fld %st(0)
fmul %st(0)
fstps (%esp)
fstps (%esp)
flds (%esp)
addl $4, %esp
cfi_adjust_cfa_offset (-4)
3... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2f.S | LGPL-2.1 | 903af5af9a0404c1dfeb7b4db6d5a23a1e45593f | github | libc | https://github.com/bminor/glibc/blob/903af5af9a0404c1dfeb7b4db6d5a23a1e45593f/sysdeps/i386/fpu/e_exp2f.S | 41 | 70 |
bminor/glibc:sysdeps/i386/fpu/e_exp2f.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for exp2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*/
#include <machine/asm.h>
ENTRY(__ieee754_exp2f)
flds 4(%esp)
/* I added the following ugly construct because exp(+-Inf) resulted
in NaN. The ugliness results from the bright minds at ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2f.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_exp2f.S | 1 | 38 |
bminor/glibc:sysdeps/i386/fpu/e_exp2l.S:1 | /*
* Public domain.
*/
#include <machine/asm.h>
#include <i386-math-asm.h>
#include <libm-alias-finite.h>
DEFINE_LDBL_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
ENTRY(__ieee754_exp2l)
#ifdef PIC
LOAD_PIC_REG (cx)
#endif
fldt 4(%esp)
/* I added the following ugly cons... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2l.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_exp2l.S | 1 | 59 |
bminor/glibc:sysdeps/i386/fpu/e_exp2l.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for exp2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*/
#include <machine/asm.h>
#include <i386-math-asm.h>
#include <libm-alias-finite.h>
DEFINE_LDBL_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
ENT... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2l.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_exp2l.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_exp2l.S:2 | faddp
ret
3: fld %st
frndint /* int(x) */
fsubr %st,%st(1) /* fract(x) */
fxch
f2xm1 /* 2^(fract(x)) - 1 */
fld1
faddp /* 2^(fract(x)) */
fscale /* e^x */
fstp %st(1)
LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN
ret
1: testl $0x200, %eax /* Test sign. */
jz 2f /* If positive, jump. */
fstp %st
fld... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2l.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_exp2l.S | 41 | 61 |
bminor/glibc:sysdeps/i386/fpu/e_exp2l.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for exp2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*/
#include <machine/asm.h>
#include <i386-math-asm.h>
DEFINE_LDBL_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
ENTRY(__ieee754_exp2l)
#ifdef PIC
... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2l.S | LGPL-2.1 | 37825319ee64d51bf8b1774f4964e9743eaf5ef6 | github | libc | https://github.com/bminor/glibc/blob/37825319ee64d51bf8b1774f4964e9743eaf5ef6/sysdeps/i386/fpu/e_exp2l.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_exp2l.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for exp2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*/
#include <machine/asm.h>
.section .rodata.cst16,"aM",@progbits,16
.p2align 4
.type ldbl_min,@object
ldbl_min: .byte 0, 0, 0, 0, 0, 0, 0, 0x80, 0x1, 0
.byte 0, 0, 0, 0, 0, 0
ASM_SIZE_D... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2l.S | LGPL-2.1 | 903af5af9a0404c1dfeb7b4db6d5a23a1e45593f | github | libc | https://github.com/bminor/glibc/blob/903af5af9a0404c1dfeb7b4db6d5a23a1e45593f/sysdeps/i386/fpu/e_exp2l.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_exp2l.S:2 | jge 3f
/* Argument's exponent below -65, result rounds to 1. */
fld1
faddp
ret
3: fld %st
frndint /* int(x) */
fsubr %st,%st(1) /* fract(x) */
fxch
f2xm1 /* 2^(fract(x)) - 1 */
fld1
faddp /* 2^(fract(x)) */
fscale /* e^x */
fstp %st(1)
/* Ensure underflow for tiny result. */
fldt MO(ldbl_mi... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2l.S | LGPL-2.1 | 903af5af9a0404c1dfeb7b4db6d5a23a1e45593f | github | libc | https://github.com/bminor/glibc/blob/903af5af9a0404c1dfeb7b4db6d5a23a1e45593f/sysdeps/i386/fpu/e_exp2l.S | 41 | 73 |
bminor/glibc:sysdeps/i386/fpu/e_exp2l.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Adapted for exp2 by Ulrich Drepper <drepper@cygnus.com>.
* Public domain.
*/
#include <machine/asm.h>
ENTRY(__ieee754_exp2l)
fldt 4(%esp)
/* I added the following ugly construct because exp(+-Inf) resulted
in NaN. The ugliness results from the bright minds at ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_exp2l.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_exp2l.S | 1 | 46 |
bminor/glibc:sysdeps/i386/fpu/e_expf.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 <i386-math-asm.h>
DEFINE_FLT_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
#else
# define MO(op) op
#endif
.text
/* e^x = 2^(x * log2(e)) */
E... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expf.S | LGPL-2.1 | 6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c | github | libc | https://github.com/bminor/glibc/blob/6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c/sysdeps/i386/fpu/e_expf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_expf.S:2 | f2xm1 /* 2^(fract(x * log2(e))) - 1 */
fld1
faddp /* 2^(fract(x * log2(e))) */
fscale /* e^x */
fstp %st(1)
FLT_NARROW_EVAL_UFLOW_NONNEG_NAN
ret
1: testl $0x200, %eax /* Test sign. */
jz 2f /* If positive, jump. */
fstp %st
fldz /* Set result to 0. */
2: ret
END (__ieee754_expf)
ENTRY(__ex... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expf.S | LGPL-2.1 | 6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c | github | libc | https://github.com/bminor/glibc/blob/6f0f237bf5a3c8d29a6342cbf8b4c17b10aa1d4c/sysdeps/i386/fpu/e_expf.S | 41 | 74 |
bminor/glibc:sysdeps/i386/fpu/e_expf.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>
.section .rodata.cst4,"aM",@progbits,4
.p2align 2
.type flt_min,@object
flt_min: .byte 0, 0, 0x80, 0
ASM_SIZE_DIRECTIVE(flt_min)
#ifdef PIC
# define MO... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expf.S | LGPL-2.1 | de5e81691c80468ff97c5260b4020aeaecfe418d | github | libc | https://github.com/bminor/glibc/blob/de5e81691c80468ff97c5260b4020aeaecfe418d/sysdeps/i386/fpu/e_expf.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_expf.S:2 | fld %st
frndint /* int(x * log2(e)) */
fsubr %st,%st(1) /* fract(x * log2(e)) */
fxch
f2xm1 /* 2^(fract(x * log2(e))) - 1 */
fld1
faddp /* 2^(fract(x * log2(e))) */
fscale /* e^x */
fstp %st(1)
flds MO(flt_min)
fld %st(1)
fucompp
fnstsw
sahf
jnc 3f
subl $4, %esp
cfi_adjust_cfa_offset (4)
f... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expf.S | LGPL-2.1 | de5e81691c80468ff97c5260b4020aeaecfe418d | github | libc | https://github.com/bminor/glibc/blob/de5e81691c80468ff97c5260b4020aeaecfe418d/sysdeps/i386/fpu/e_expf.S | 41 | 100 |
bminor/glibc:sysdeps/i386/fpu/e_expf.S:3 | fld %st
frndint /* int(x * log2(e)) */
fsubr %st,%st(1) /* fract(x * log2(e)) */
fxch
f2xm1 /* 2^(fract(x * log2(e))) - 1 */
fld1
faddp /* 2^(fract(x * log2(e))) */
fscale /* e^x */
fstp %st(1)
flds MO(flt_min)
fld %st(1)
fucompp
fnstsw
sahf
jnc 4f
subl $4, %esp
cfi_adjust_cfa_offset (4)
f... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expf.S | LGPL-2.1 | de5e81691c80468ff97c5260b4020aeaecfe418d | github | libc | https://github.com/bminor/glibc/blob/de5e81691c80468ff97c5260b4020aeaecfe418d/sysdeps/i386/fpu/e_expf.S | 81 | 106 |
bminor/glibc:sysdeps/i386/fpu/e_expf.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>
/* e^x = 2^(x * log2(e)) */
ENTRY(__ieee754_expf)
flds 4(%esp)
/* I added the following ugly construct because exp(+-Inf) resulted
in NaN. The ugliness... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expf.S | LGPL-2.1 | 890b7a4b33d482b5c768ab47d70758b80227e9bc | github | libc | https://github.com/bminor/glibc/blob/890b7a4b33d482b5c768ab47d70758b80227e9bc/sysdeps/i386/fpu/e_expf.S | 1 | 57 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:1 | /*
* Public domain.
*
*/
/*
* The 8087 method for the exponential function is to calculate
* exp(x) = 2^(x log2(e))
* after separating integer and fractional parts
* x log2(e) = i + f, |f| <= .5
* 2^i is immediate but f needs to be precise for long double accuracy.
* Suppress range reduction error in comp... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_expl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:2 | .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_DIRECTIVE(c1)
#else
.type c0,@object
c0: .byte 0,... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_expl.S | 41 | 100 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:3 | jae HIDDEN_JUMPTARGET (__expl) // (if num is denormal, it is at least >= 64.0)
#endif
fldt 4(%esp)
/* I added the following ugly construct because expl(+-Inf) resulted
in NaN. The ugliness results from the bright minds at Intel.
For the i686 the code can be written better.
-- drepper@cygnus.com. */
fxam ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_expl.S | 81 | 140 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:4 | 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, %eax
cmpl $0x400d, %eax
jg 5f
cmpl $0x3fbc, %eax
jge 3f
/* Argument's exponent below -67, result rounds to 1. */
fld1
faddp
jmp 2f
5: /* Overflow, underflow or infin... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_expl.S | 121 | 180 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:5 | 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 */
fldt MO(c0) /* 4 c0 */
fld %st(2) /* 5 xi */
fmul %st(1), %st /* 5 ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_expl.S | 161 | 220 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:6 | 1:
#ifdef USE_AS_EXPM1L
/* For expm1l, only negative sign gets here. */
fstp %st
fld1
fchs
#else
testl $0x200, %eax /* Test sign. */
jz 2f /* If positive, jump. */
fstp %st
fldz /* Set result to 0. */
#endif
2: ret
6: /* NaN argument. */
fadd %st
ret
END(IEEE754_EXPL)
#ifdef USE_AS_EXPM1L
libm_hidden... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 04e750e75b73957cf1c791535a3f4319534a52fc | github | libc | https://github.com/bminor/glibc/blob/04e750e75b73957cf1c791535a3f4319534a52fc/sysdeps/i386/fpu/e_expl.S | 201 | 226 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*
* Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>.
*/
/*
* The 8087 method for the exponential function is to calculate
* exp(x) = 2^(x log2(e))
* after separating integer and fractional parts
* x log2(e) = i + f, |f| <= .5... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_expl.S | 1 | 60 |
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 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_expl.S | 41 | 100 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:3 | 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 following ugly construct because expl(+-Inf) resulted
in NaN. The ugl... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_expl.S | 81 | 140 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:4 | 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, %eax
cmpl $0x400d, %eax
jg 5f
cmpl $0x3fbc, %eax
jge 3f
/* Argument's exponent below -67, re... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_expl.S | 121 | 180 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:5 | 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 */
fldt MO(c0) /* 4 c0 */
fld %st(2) /* 5 xi ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_expl.S | 161 | 220 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:6 | fstp %st(1) /* 0 */
jmp 2f
1:
#ifdef USE_AS_EXPM1L
/* For expm1l, only negative sign gets here. */
fstp %st
fld1
fchs
#else
testl $0x200, %eax /* Test sign. */
jz 2f /* If positive, jump. */
fstp %st
fldz /* Set result to 0. */
#endif
2: ret
6: /* NaN argument. */
fadd %st
ret
END(IEEE754_EXPL)
#i... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 220622dde5704c95a100c2792a280f18f3deba73 | github | libc | https://github.com/bminor/glibc/blob/220622dde5704c95a100c2792a280f18f3deba73/sysdeps/i386/fpu/e_expl.S | 201 | 228 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*
* Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>.
*/
/*
* The 8087 method for the exponential function is to calculate
* exp(x) = 2^(x log2(e))
* after separating integer and fractional parts
* x log2(e) = i + f, |f| <= .5... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 2ce30701e6df07deda6fb205808769d237aa2460 | github | libc | https://github.com/bminor/glibc/blob/2ce30701e6df07deda6fb205808769d237aa2460/sysdeps/i386/fpu/e_expl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:2 | #endif
.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_SIZ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 2ce30701e6df07deda6fb205808769d237aa2460 | github | libc | https://github.com/bminor/glibc/blob/2ce30701e6df07deda6fb205808769d237aa2460/sysdeps/i386/fpu/e_expl.S | 41 | 100 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:3 | #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 following ugly construct be... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 2ce30701e6df07deda6fb205808769d237aa2460 | github | libc | https://github.com/bminor/glibc/blob/2ce30701e6df07deda6fb205808769d237aa2460/sysdeps/i386/fpu/e_expl.S | 81 | 140 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:4 | 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, %eax
cmpl $0x400d, %eax
jg 5f
cmpl $0x3fbc, %eax
jge 3f
/* ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 2ce30701e6df07deda6fb205808769d237aa2460 | github | libc | https://github.com/bminor/glibc/blob/2ce30701e6df07deda6fb205808769d237aa2460/sysdeps/i386/fpu/e_expl.S | 121 | 180 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:5 | 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 */
fldt MO(c0) /* 4 c0 ... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 2ce30701e6df07deda6fb205808769d237aa2460 | github | libc | https://github.com/bminor/glibc/blob/2ce30701e6df07deda6fb205808769d237aa2460/sysdeps/i386/fpu/e_expl.S | 161 | 220 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:6 | LDBL_CHECK_FORCE_UFLOW_NONNEG
#endif
fstp %st(1) /* 0 */
jmp 2f
1:
#ifdef USE_AS_EXPM1L
/* For expm1l, only negative sign gets here. */
fstp %st
fld1
fchs
#else
testl $0x200, %eax /* Test sign. */
jz 2f /* If positive, jump. */
fstp %st
fldz /* Set result to 0. */
#endif
2: ret
6: /* NaN argument. *... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 2ce30701e6df07deda6fb205808769d237aa2460 | github | libc | https://github.com/bminor/glibc/blob/2ce30701e6df07deda6fb205808769d237aa2460/sysdeps/i386/fpu/e_expl.S | 201 | 227 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*
* Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>.
*/
/*
* The 8087 method for the exponential function is to calculate
* exp(x) = 2^(x log2(e))
* after separating integer and fractional parts
* x log2(e) = i + f, |f| <= .5... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 9bd3ef8e19b19fb3cfcf99a33a1493035891b990 | github | libc | https://github.com/bminor/glibc/blob/9bd3ef8e19b19fb3cfcf99a33a1493035891b990/sysdeps/i386/fpu/e_expl.S | 1 | 60 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:3 | 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 following ugly construct because expl(+-Inf) resu... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 9bd3ef8e19b19fb3cfcf99a33a1493035891b990 | github | libc | https://github.com/bminor/glibc/blob/9bd3ef8e19b19fb3cfcf99a33a1493035891b990/sysdeps/i386/fpu/e_expl.S | 81 | 140 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:4 | 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, %eax
cmpl $0x400d, %eax
jg 5f
cmpl $0x3fbc, %eax
jge 3f
/* Argument's ex... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 9bd3ef8e19b19fb3cfcf99a33a1493035891b990 | github | libc | https://github.com/bminor/glibc/blob/9bd3ef8e19b19fb3cfcf99a33a1493035891b990/sysdeps/i386/fpu/e_expl.S | 121 | 180 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:5 | 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 */
fldt MO(c0) /* 4 c0 */
fl... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 9bd3ef8e19b19fb3cfcf99a33a1493035891b990 | github | libc | https://github.com/bminor/glibc/blob/9bd3ef8e19b19fb3cfcf99a33a1493035891b990/sysdeps/i386/fpu/e_expl.S | 161 | 220 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:6 | #endif
fstp %st(1) /* 0 */
jmp 2f
1:
#ifdef USE_AS_EXPM1L
/* For expm1l, only negative sign gets here. */
fstp %st
fld1
fchs
#else
testl $0x200, %eax /* Test sign. */
jz 2f /* If positive, jump. */
fstp %st
fldz /* Set result to 0. */
#endif
2: ret
6: /* NaN argument. */
fadd %st
ret
END(IEEE754_E... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 9bd3ef8e19b19fb3cfcf99a33a1493035891b990 | github | libc | https://github.com/bminor/glibc/blob/9bd3ef8e19b19fb3cfcf99a33a1493035891b990/sysdeps/i386/fpu/e_expl.S | 201 | 226 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:3 | 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 following ugly construct because expl(+-Inf) resu... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 37825319ee64d51bf8b1774f4964e9743eaf5ef6 | github | libc | https://github.com/bminor/glibc/blob/37825319ee64d51bf8b1774f4964e9743eaf5ef6/sysdeps/i386/fpu/e_expl.S | 81 | 140 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:4 | 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, %eax
cmpl $0x400d, %eax
jg 5f
cmpl $0x3fbc, %eax
jge 3f
/* Argument's ex... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 37825319ee64d51bf8b1774f4964e9743eaf5ef6 | github | libc | https://github.com/bminor/glibc/blob/37825319ee64d51bf8b1774f4964e9743eaf5ef6/sysdeps/i386/fpu/e_expl.S | 121 | 180 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:5 | 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 */
fldt MO(c0) /* 4 c0 */
fl... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 37825319ee64d51bf8b1774f4964e9743eaf5ef6 | github | libc | https://github.com/bminor/glibc/blob/37825319ee64d51bf8b1774f4964e9743eaf5ef6/sysdeps/i386/fpu/e_expl.S | 161 | 220 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:6 | #endif
fstp %st(1) /* 0 */
jmp 2f
1:
#ifdef USE_AS_EXPM1L
/* For expm1l, only negative sign gets here. */
fstp %st
fld1
fchs
#else
testl $0x200, %eax /* Test sign. */
jz 2f /* If positive, jump. */
fstp %st
fldz /* Set result to 0. */
#endif
2: ret
END(IEEE754_EXPL)
#ifdef USE_AS_EXPM1L
libm_hidden_d... | x86 | gas-att | handwritten | bminor/glibc | sysdeps/i386/fpu/e_expl.S | LGPL-2.1 | 37825319ee64d51bf8b1774f4964e9743eaf5ef6 | github | libc | https://github.com/bminor/glibc/blob/37825319ee64d51bf8b1774f4964e9743eaf5ef6/sysdeps/i386/fpu/e_expl.S | 201 | 223 |
bminor/glibc:sysdeps/i386/fpu/e_expl.S:1 | /*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*
* Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>.
*/
/*
* The 8087 method for the exponential function is to calculate
* exp(x) = 2^(x log2(e))
* after separating integer and fractional parts
* x log2(e) = i + f, |f| <= .5... | 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 | 1 | 60 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.