Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify comment style #23

Merged
merged 1 commit into from
Jul 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions riscv_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,31 +158,31 @@ static inline uint32_t dec_rd(const uint32_t insn)
}

/* decode rs1 field.
* rs1 in bits 19..15
* rs1 = insn[19:15]
*/
static inline uint32_t dec_rs1(const uint32_t insn)
{
return (insn & FR_RS1) >> 15;
}

/* decode rs2 field.
* rs2 in bits 24..20
* rs2 = insn[24:20]
*/
static inline uint32_t dec_rs2(const uint32_t insn)
{
return (insn & FR_RS2) >> 20;
}

/* decoded funct3 field.
* funct3 in bits 14..12
*/
* funct3 = insn[14:12]
*/
static inline uint32_t dec_funct3(const uint32_t insn)
{
return (insn & FR_FUNCT3) >> 12;
}

/* decode funct7 field.
* funct7 in bits 31..25
* funct7 = insn[31:25]
*/
static inline uint32_t dec_funct7(const uint32_t insn)
{
Expand Down