projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Perform bitwise ops on unsigned types
[lttng-ust.git]
/
liblttng-ust
/
lttng-filter-interpreter.c
diff --git
a/liblttng-ust/lttng-filter-interpreter.c
b/liblttng-ust/lttng-filter-interpreter.c
index 1354d9c1062e5bebf1d764cf31e9116f32124116..753880c3e269692072f9a6c416a22868e86e77ce 100644
(file)
--- a/
liblttng-ust/lttng-filter-interpreter.c
+++ b/
liblttng-ust/lttng-filter-interpreter.c
@@
-1562,7
+1562,7
@@
uint64_t lttng_filter_interpret_bytecode(void *filter_data,
ret = -EINVAL;
goto end;
}
ret = -EINVAL;
goto end;
}
- res = (
estack_bx_v >>
estack_ax_v);
+ res = (
(uint64_t) estack_bx_v >> (uint32_t)
estack_ax_v);
estack_pop(stack, top, ax, bx, ax_t, bx_t);
estack_ax_v = res;
estack_ax_t = REG_S64;
estack_pop(stack, top, ax, bx, ax_t, bx_t);
estack_ax_v = res;
estack_ax_t = REG_S64;
@@
-1583,7
+1583,7
@@
uint64_t lttng_filter_interpret_bytecode(void *filter_data,
ret = -EINVAL;
goto end;
}
ret = -EINVAL;
goto end;
}
- res = (
estack_bx_v <<
estack_ax_v);
+ res = (
(uint64_t) estack_bx_v << (uint32_t)
estack_ax_v);
estack_pop(stack, top, ax, bx, ax_t, bx_t);
estack_ax_v = res;
estack_ax_t = REG_S64;
estack_pop(stack, top, ax, bx, ax_t, bx_t);
estack_ax_v = res;
estack_ax_t = REG_S64;
@@
-1600,7
+1600,7
@@
uint64_t lttng_filter_interpret_bytecode(void *filter_data,
goto end;
}
goto end;
}
- res = (
estack_bx_v &
estack_ax_v);
+ res = (
(uint64_t) estack_bx_v & (uint64_t)
estack_ax_v);
estack_pop(stack, top, ax, bx, ax_t, bx_t);
estack_ax_v = res;
estack_ax_t = REG_S64;
estack_pop(stack, top, ax, bx, ax_t, bx_t);
estack_ax_v = res;
estack_ax_t = REG_S64;
@@
-1617,7
+1617,7
@@
uint64_t lttng_filter_interpret_bytecode(void *filter_data,
goto end;
}
goto end;
}
- res = (
estack_bx_v |
estack_ax_v);
+ res = (
(uint64_t) estack_bx_v | (uint64_t)
estack_ax_v);
estack_pop(stack, top, ax, bx, ax_t, bx_t);
estack_ax_v = res;
estack_ax_t = REG_S64;
estack_pop(stack, top, ax, bx, ax_t, bx_t);
estack_ax_v = res;
estack_ax_t = REG_S64;
@@
-1634,7
+1634,7
@@
uint64_t lttng_filter_interpret_bytecode(void *filter_data,
goto end;
}
goto end;
}
- res = (
estack_bx_v ^
estack_ax_v);
+ res = (
(uint64_t) estack_bx_v ^ (uint64_t)
estack_ax_v);
estack_pop(stack, top, ax, bx, ax_t, bx_t);
estack_ax_v = res;
estack_ax_t = REG_S64;
estack_pop(stack, top, ax, bx, ax_t, bx_t);
estack_ax_v = res;
estack_ax_t = REG_S64;
@@
-1711,7
+1711,7
@@
uint64_t lttng_filter_interpret_bytecode(void *filter_data,
goto end;
}
goto end;
}
- estack_ax_v = ~estack_ax_v;
+ estack_ax_v = ~
(uint64_t)
estack_ax_v;
next_pc += sizeof(struct unary_op);
PO;
}
next_pc += sizeof(struct unary_op);
PO;
}
This page took
0.023585 seconds
and
4
git commands to generate.