Skip to content

Commit

Permalink
stress-rotate: add an UNLIKELY branch hint
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
  • Loading branch information
ColinIanKing committed Jan 28, 2025
1 parent 7f59549 commit ba61ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stress-rotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ stress_ ## fname ## size(stress_args_t *args, const bool verify, bool *success)\
stress_mwc_set_seed(w, z); \
duration += stress_ ## fname ## size ## helper \
(args, &checksum1); \
if (checksum0 != checksum1) { \
if (UNLIKELY(checksum0 != checksum1)) { \
pr_fail("%s: failed checksum with a " \
"%s uint%d_t operation\n", \
args->name, # fname, size); \
Expand Down

0 comments on commit ba61ecf

Please sign in to comment.