repo.or.cz
/
tinycc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
macos: ldd does not exit, use otool instead
[tinycc.git]
/
lib
/
fetch_and_add_riscv64.S
blob
b4cd57554036c26ef6a9bc522d7b577338c3cabc
1
.text
2
.align 2
3
.global fetch_and_add_riscv64
4
.type fetch_and_add_riscv64, %function
5
fetch_and_add_riscv64:
6
#ifdef __TINYC__
7
.int 0x0f50000f
8
.int 0x004b5202f
9
.short 0x8082
10
#else
11
fence iorw,ow
12
amoadd.w.aq zero,a1,0(a0)
13
ret
14
#endif
15
16
.size fetch_and_add_riscv64, .-fetch_and_add_riscv64