summaryrefslogtreecommitdiff
path: root/arch/x64/linux/math
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2021-03-12 08:48:35 +0100
committerEugen Wissner <belka@caraus.de>2021-03-12 08:48:35 +0100
commit0fcc83d00eb9d0699167bf105d522e7d23a44d32 (patch)
tree5cb0c97b04ec54cfba823e6c89dac99fbd5dcfdf /arch/x64/linux/math
parentf27f62b80abf8b237d5c4bf57427fd50aa17e2b0 (diff)
downloadtanya-0fcc83d00eb9d0699167bf105d522e7d23a44d32.tar.gz
Remove the sys package
Diffstat (limited to 'arch/x64/linux/math')
-rw-r--r--arch/x64/linux/math/abs.S35
-rw-r--r--arch/x64/linux/math/log.S48
2 files changed, 0 insertions, 83 deletions
diff --git a/arch/x64/linux/math/abs.S b/arch/x64/linux/math/abs.S
deleted file mode 100644
index 6635273..0000000
--- a/arch/x64/linux/math/abs.S
+++ /dev/null
@@ -1,35 +0,0 @@
- .text
-
-
-// fabsf.
- .globl _D5tanya4math8nbtheory4fabsFNaNbNiNffZf
- .type _D5tanya4math8nbtheory4fabsFNaNbNiNffZf, @function
-
-_D5tanya4math8nbtheory4fabsFNaNbNiNffZf:
- mov $0x7fffffff, %eax
- movq %rax, %xmm1
- andpd %xmm1, %xmm0
- ret
-
-
-// fabs.
- .globl _D5tanya4math8nbtheory4fabsFNaNbNiNfdZd
- .type _D5tanya4math8nbtheory4fabsFNaNbNiNfdZd, @function
-
-_D5tanya4math8nbtheory4fabsFNaNbNiNfdZd:
- mov $0x7fffffffffffffff, %rax
- movq %rax, %xmm1
- andpd %xmm1, %xmm0
- ret
-
-
-// fabsl.
- .globl _D5tanya4math8nbtheory4fabsFNaNbNiNfeZe
- .type _D5tanya4math8nbtheory4fabsFNaNbNiNfeZe, @function
-
-// Load the parameter from the stack onto FP stack, execute 'fabs' instruction
-// The result is returned in ST0.
-_D5tanya4math8nbtheory4fabsFNaNbNiNfeZe:
- fldt 0x8(%rsp)
- fabs
- ret
diff --git a/arch/x64/linux/math/log.S b/arch/x64/linux/math/log.S
deleted file mode 100644
index 9c5ed35..0000000
--- a/arch/x64/linux/math/log.S
+++ /dev/null
@@ -1,48 +0,0 @@
- .text
-
-
-// logf.
- .globl _D5tanya4math8nbtheory4logfFNaNbNiNffZf
- .type _D5tanya4math8nbtheory4logfFNaNbNiNffZf, @function
-
-_D5tanya4math8nbtheory4logfFNaNbNiNffZf:
- movss %xmm0, -4(%rsp) // Put the argument onto the stack
-
- fldln2 // Put lb(e) onto the FPU stack
- flds -4(%rsp) // Put a float onto the FPU stack
- fyl2x // %st1 * lb(%st0)
-
- // The result is on the FPU stack, but returned in %xmm0
- fstps -4(%rsp)
- movss -4(%rsp), %xmm0
-
- ret
-
-
-// log.
- .globl _D5tanya4math8nbtheory3logFNaNbNiNfdZd
- .type _D5tanya4math8nbtheory3logFNaNbNiNfdZd, @function
-
-_D5tanya4math8nbtheory3logFNaNbNiNfdZd:
- movsd %xmm0, -8(%rsp) // Put the argument onto the stack
-
- fldln2 // Put lb(e) onto the FPU stack
- fldl -8(%rsp) // Put a double onto the FPU stack
- fyl2x // %st1 * lb(%st0)
-
- // The result is on the FPU stack, but returned in %xmm0
- fstpl -8(%rsp)
- movsd -8(%rsp), %xmm0
-
- ret
-
-
-// logl.
- .globl _D5tanya4math8nbtheory4loglFNaNbNiNfeZe
- .type _D5tanya4math8nbtheory4loglFNaNbNiNfeZe, @function
-
-_D5tanya4math8nbtheory4loglFNaNbNiNfeZe:
- fldln2 // Put lb(e) onto the FPU stack
- fldt 8(%rsp) // Put the argument onto the FPU stack
- fyl2x // %st1 * lb(%st0)
- ret