Skip to content

Commit

Permalink
Merge pull request #248 from HidetaroTanaka/main
Browse files Browse the repository at this point in the history
Add RISC-V Assembly implementation
  • Loading branch information
mawerty authored Jan 31, 2024
2 parents d665876 + 795f5a0 commit 3ed35ba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ A: Thecoderunsfasterwhentherearenouselessspacesandnewlines.
- Rebol
- React Javascript
- React Typescript
- RISC-V Assembly
- Rockstar
- Romanian
- Ruby
Expand Down
8 changes: 8 additions & 0 deletions implementations/main.riscv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.section .rodata
.text
.align 1
.globl is_prime
.type is_prime, @function
is_prime:
mv a0, zero
ret
1 change: 1 addition & 0 deletions optimized_implementations/main.riscv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
is_prime:li a0,0;ret

0 comments on commit 3ed35ba

Please sign in to comment.