Skip to content

Commit 2c69ee4

Browse files
committed
remove not needed branch pred hints
1 parent 53647eb commit 2c69ee4

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/mrb_cbor.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2206,22 +2206,22 @@ skip_cbor_try(mrb_state *mrb, Reader *r)
22062206
switch (major) {
22072207

22082208
case 0: case 1:
2209-
if (likely(info < 24)) {
2209+
if ((info < 24)) {
22102210
/* small int, nothing to skip */
22112211
} else {
2212-
if (likely(info == 24 && r->p < r->end)) {
2212+
if ((info == 24 && r->p < r->end)) {
22132213
mrb_value lv = read_cbor_uint(mrb, r, info);
22142214
if (!mrb_integer_p(lv)) ok = FALSE;
22152215
}
2216-
else if (likely(info == 25 && (r->end - r->p) >= 2)) {
2216+
else if ((info == 25 && (r->end - r->p) >= 2)) {
22172217
mrb_value lv = read_cbor_uint(mrb, r, info);
22182218
if (!mrb_integer_p(lv)) ok = FALSE;
22192219
}
2220-
else if (likely(info == 26 && (r->end - r->p) >= 4)) {
2220+
else if ((info == 26 && (r->end - r->p) >= 4)) {
22212221
mrb_value lv = read_cbor_uint(mrb, r, info);
22222222
if (!mrb_integer_p(lv)) ok = FALSE;
22232223
}
2224-
else if (likely(info == 27 && (r->end - r->p) >= 8)) {
2224+
else if ((info == 27 && (r->end - r->p) >= 8)) {
22252225
mrb_value lv = read_cbor_uint(mrb, r, info);
22262226
if (!mrb_integer_p(lv)) ok = FALSE;
22272227
}
@@ -2318,7 +2318,7 @@ skip_cbor_try(mrb_state *mrb, Reader *r)
23182318
}
23192319

23202320
case 7: {
2321-
if (likely(info < 24)) {
2321+
if ((info < 24)) {
23222322
/* simple values */
23232323
} else {
23242324
switch (info) {

0 commit comments

Comments
 (0)