summaryrefslogtreecommitdiff
path: root/lib/math/trunc-impl+posixy-x64-sse4.s
blob: cb452e074882db18f6d7c9666fa3f559ee6631e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
.globl math$trunc32
.globl _math$trunc32
math$trunc32:
_math$trunc32:
	roundss $0x03, %xmm0, %xmm0
	ret

.globl math$floor32
.globl _math$floor32
math$floor32:
_math$floor32:
	roundss $0x01, %xmm0, %xmm0
	ret

.globl math$ceil32
.globl _math$ceil32
math$ceil32:
_math$ceil32:
	roundss $0x02, %xmm0, %xmm0
	ret

.globl math$trunc64
.globl _math$trunc64
math$trunc64:
_math$trunc64:
	roundsd $0x03, %xmm0, %xmm0
	ret

.globl math$floor64
.globl _math$floor64
math$floor64:
_math$floor64:
	roundsd $0x01, %xmm0, %xmm0
	ret

.globl math$ceil64
.globl _math$ceil64
math$ceil64:
_math$ceil64:
	roundsd $0x02, %xmm0, %xmm0
	ret