2017-09-13 06:43:49 +02:00
|
|
|
.text
|
|
|
|
|
|
|
|
|
|
|
|
// fabsf.
|
2018-05-08 17:45:51 +02:00
|
|
|
.globl _D5tanya4math8nbtheory4fabsFNaNbNiNffZf
|
|
|
|
.type _D5tanya4math8nbtheory4fabsFNaNbNiNffZf, @function
|
2017-09-13 06:43:49 +02:00
|
|
|
|
2018-05-08 17:45:51 +02:00
|
|
|
_D5tanya4math8nbtheory4fabsFNaNbNiNffZf:
|
2017-09-13 06:43:49 +02:00
|
|
|
mov $0x7fffffff, %eax
|
|
|
|
movq %rax, %xmm1
|
|
|
|
andpd %xmm1, %xmm0
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
|
|
// fabs.
|
2018-05-08 17:45:51 +02:00
|
|
|
.globl _D5tanya4math8nbtheory4fabsFNaNbNiNfdZd
|
|
|
|
.type _D5tanya4math8nbtheory4fabsFNaNbNiNfdZd, @function
|
2017-09-13 06:43:49 +02:00
|
|
|
|
2018-05-08 17:45:51 +02:00
|
|
|
_D5tanya4math8nbtheory4fabsFNaNbNiNfdZd:
|
2017-09-13 06:43:49 +02:00
|
|
|
mov $0x7fffffffffffffff, %rax
|
|
|
|
movq %rax, %xmm1
|
|
|
|
andpd %xmm1, %xmm0
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
|
|
// fabsl.
|
2018-05-08 17:45:51 +02:00
|
|
|
.globl _D5tanya4math8nbtheory4fabsFNaNbNiNfeZe
|
|
|
|
.type _D5tanya4math8nbtheory4fabsFNaNbNiNfeZe, @function
|
2017-09-13 06:43:49 +02:00
|
|
|
|
|
|
|
// Load the parameter from the stack onto FP stack, execute 'fabs' instruction
|
|
|
|
// The result is returned in ST0.
|
2018-05-08 17:45:51 +02:00
|
|
|
_D5tanya4math8nbtheory4fabsFNaNbNiNfeZe:
|
2017-09-13 06:43:49 +02:00
|
|
|
fldt 0x8(%rsp)
|
|
|
|
fabs
|
|
|
|
ret
|