diff options
author | Mark Rutland <[email protected]> | 2024-06-17 12:18:37 +0100 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2024-06-24 18:16:44 +0100 |
commit | 118d777c4cb40f44e7b675955fd2da8b22f83913 (patch) | |
tree | 8f1b01ee8e3062993a34ba1e694d75f8c647c832 /tools/perf/scripts/python/task-analyzer.py | |
parent | 83a7eefedc9b56fe7bfeff13b6c7356688ffa670 (diff) |
wordpart.h: Add REPEAT_BYTE_U32()
In some cases it's necessary to replicate a byte across a u32 value, for
which REPEAT_BYTE() would be helpful. Currently this requires explicit
masking of the result to avoid sparse warnings, as e.g.
(u32)REPEAT_BYTE(0xa0))
... will result in a warning:
cast truncates bits from constant value (a0a0a0a0a0a0a0a0 becomes a0a0a0a0)
Add a new REPEAT_BYTE_U32() which does the necessary masking internally,
so that we don't need to duplicate this for every usage.
Signed-off-by: Mark Rutland <[email protected]>
Cc: Alexandru Elisei <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions