Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: fusl/src/fenv/aarch64/fenv.s

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/src/fenv/__flt_rounds.c ('k') | fusl/src/fenv/armebhf/fenv.sub » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 .global fegetround
2 .type fegetround,%function
3 fegetround:
4 mrs x0, fpcr
5 and w0, w0, #0xc00000
6 ret
7
8 .global __fesetround
9 .type __fesetround,%function
10 __fesetround:
11 mrs x1, fpcr
12 bic w1, w1, #0xc00000
13 orr w1, w1, w0
14 msr fpcr, x1
15 mov w0, #0
16 ret
17
18 .global fetestexcept
19 .type fetestexcept,%function
20 fetestexcept:
21 and w0, w0, #0x1f
22 mrs x1, fpsr
23 and w0, w0, w1
24 ret
25
26 .global feclearexcept
27 .type feclearexcept,%function
28 feclearexcept:
29 and w0, w0, #0x1f
30 mrs x1, fpsr
31 bic w1, w1, w0
32 msr fpsr, x1
33 mov w0, #0
34 ret
35
36 .global feraiseexcept
37 .type feraiseexcept,%function
38 feraiseexcept:
39 and w0, w0, #0x1f
40 mrs x1, fpsr
41 orr w1, w1, w0
42 msr fpsr, x1
43 mov w0, #0
44 ret
45
46 .global fegetenv
47 .type fegetenv,%function
48 fegetenv:
49 mrs x1, fpcr
50 mrs x2, fpsr
51 stp w1, w2, [x0]
52 mov w0, #0
53 ret
54
55 // TODO preserve some bits
56 .global fesetenv
57 .type fesetenv,%function
58 fesetenv:
59 mov x1, #0
60 mov x2, #0
61 cmn x0, #1
62 b.eq 1f
63 ldp w1, w2, [x0]
64 1: msr fpcr, x1
65 msr fpsr, x2
66 mov w0, #0
67 ret
OLDNEW
« no previous file with comments | « fusl/src/fenv/__flt_rounds.c ('k') | fusl/src/fenv/armebhf/fenv.sub » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698