aboutsummaryrefslogtreecommitdiff
path: root/tools/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorFarid Khaydari <f.khaydari@syntacore.com>2025-10-01 13:14:30 +0300
committerFarid Khaydari <f.khaydari@syntacore.com>2025-10-01 15:36:26 +0300
commit9d4c94e51fdaba3290a16825e48f393b9650a321 (patch)
tree4097c926ae8d24b7ae9cb909901a36f0c1ccca8e /tools/scripts/const_structs.checkpatch
parent10f1659f5ef048486acf8ec9925d2c2e2b87f1dd (diff)
downloadriscv-openocd-9d4c94e51fdaba3290a16825e48f393b9650a321.zip
riscv-openocd-9d4c94e51fdaba3290a16825e48f393b9650a321.tar.gz
riscv-openocd-9d4c94e51fdaba3290a16825e48f393b9650a321.tar.bz2
target/riscv: refactor scratch_reserve() to use standardized macros for alignment and bit operations
This commit refactors the scratch_reserve() - Replacing hardcoded bit manipulation with BIT() macro - Using GENMASK_ULL() instead of hardcoded masks for sign extension - Applying ALIGN_UP() macro for address alignment calculations - Using DIV_ROUND_UP() instead of manual division with addition Change-Id: Ic40923ef7d9ac5ca0ffb313c9d4fc6d1457d6bbb Signed-off-by: Farid Khaydari <f.khaydari@syntacore.com>
Diffstat (limited to 'tools/scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions