summaryrefslogtreecommitdiff
path: root/hw/sh_intc.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-08-20 21:03:24 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-08-20 21:03:24 +0000
commit5e9f24b75e0c0c748ea862d1e045e2d82bee3f65 (patch)
tree5e2382045fa4be718fbb51aa9d2405dcc0b4813f /hw/sh_intc.c
parent2eaa8557591ef06dd864e9b380e6ea489f124da7 (diff)
downloadqemu-5e9f24b75e0c0c748ea862d1e045e2d82bee3f65.tar.gz
qemu-5e9f24b75e0c0c748ea862d1e045e2d82bee3f65.tar.bz2
qemu-5e9f24b75e0c0c748ea862d1e045e2d82bee3f65.zip
Use ARRAY_SIZE macro
Replace array size calculations with ARRAY_SIZE macro. Implemented with this Coccinelle semantic patch, adapted from Linux kernel: @@ type T; T[] E; @@ - (sizeof(E)/sizeof(*E)) + ARRAY_SIZE(E) @@ type T; T[] E; @@ - (sizeof(E)/sizeof(E[...])) + ARRAY_SIZE(E) @@ type T; T[] E; @@ - (sizeof(E)/sizeof(T)) + ARRAY_SIZE(E) Some files (*-dis.c, tests/*) had to be filtered out. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/sh_intc.c')
0 files changed, 0 insertions, 0 deletions