Skip to content

Commit

Permalink
fixed use of uninitialized vlen
Browse files Browse the repository at this point in the history
  • Loading branch information
camel-cdr committed Sep 16, 2024
1 parent 2222925 commit 0aff580
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/rvvlm_fp.inc.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ static_assert(false, "API_SIGNATURE ill or undefined" __FILE__);
#define MAKE_VBOOL(A) __PASTE3(A, 8, _t)
#endif
#define VSET __PASTE2(__riscv_vsetvl_e, __PASTE3(BIT_WIDTH, m, LMUL))
#define VSETMAX __PASTE2(__riscv_vsetvlmax_e, __PASTE3(BIT_WIDTH, m, LMUL))
#define VSE __PASTE2(__riscv_vse, BIT_WIDTH)
#define VSSE __PASTE2(__riscv_vsse, BIT_WIDTH)
#define MAKE_REINTERPRET(A, B) \
Expand Down
2 changes: 1 addition & 1 deletion include/rvvlm_lgammaD.inc.h
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@
} while (0)

void F_VER1(API) {
size_t vlen;
size_t vlen = VSETMAX();
VFLOAT vx, vx_orig, vy, vy_special;
VBOOL special_args;
VFLOAT zero = VFMV_VF(fp_posZero, vlen);
Expand Down

0 comments on commit 0aff580

Please sign in to comment.