Skip to content

Commit

Permalink
add blake3 macro
Browse files Browse the repository at this point in the history
  • Loading branch information
fengjian committed Mar 18, 2024
1 parent afbbc3a commit 8f43ec1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/isa/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,9 @@ macro_rules! instr {
(sha2 s16[$idx1:literal],r256[$idx2:literal]) => {
Instr::Digest(DigestOp::Sha256(RegS::from($idx1), $crate::_reg_idx16!($idx2)))
};
(blake3 s16[$idx1:literal],r256[$idx2:literal]) => {
Instr::Digest(DigestOp::Blake3(RegS::from($idx1), $crate::_reg_idx16!($idx2)))
};
(sha2 s16[$idx1:literal],r512[$idx2:literal]) => {
Instr::Digest(DigestOp::Sha512(RegS::from($idx1), $crate::_reg_idx16!($idx2)))
};
Expand Down

0 comments on commit 8f43ec1

Please sign in to comment.