Skip to content

Commit

Permalink
Fix RISC-V compile failure
Browse files Browse the repository at this point in the history
  • Loading branch information
animetosho committed May 8, 2024
1 parent 571169b commit 523ddc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yencode",
"version": "1.2.1",
"version": "1.2.2",
"description": "SIMD accelerated yEnc encoder/decoder and CRC32 calculator",
"keywords": [
"yenc",
Expand Down
3 changes: 2 additions & 1 deletion src/decoder_rvv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ HEDLEY_ALWAYS_INLINE void do_decode_rvv(const uint8_t* src, long& len, unsigned
if(LIKELIHOOD(0.0001, RV(vcpop_m_b4)(RV(vmandn_mm_b4)(cmpEqShift1, cmp, vl2), vl2) != 0)) {
// replicate fix_eqMask, but in vector form
vbool4_t groupStart = RV(vmandn_mm_b4)(cmpEq, cmpEqShift1, vl2);
vbool4_t evenBits = RV_MASK_CAST(4, 8, RV(vmv_v_x_u8m1)(0x55, vl2));
vuint8m1_t evenBitsV = RV(vmv_v_x_u8m1)(0x55, vl2);
vbool4_t evenBits = RV_MASK_CAST(4, 8, evenBitsV);
vbool4_t evenStart = RV(vmand_mm_b4)(groupStart, evenBits, vl2);

// compute `cmpEq + evenStart` to obtain oddGroups
Expand Down

0 comments on commit 523ddc9

Please sign in to comment.