]> git.proxmox.com Git - qemu.git/commit
openpic: convert simple reg operations to builtin bitops
authorAlexander Graf <agraf@suse.de>
Sat, 8 Dec 2012 00:49:52 +0000 (01:49 +0100)
committerAlexander Graf <agraf@suse.de>
Fri, 14 Dec 2012 12:12:56 +0000 (13:12 +0100)
commit1945dbc15f0f1ffdc9a10526448e9eba7c599d98
tree944948699cc62972425fc58a20c4ea5d964721a9
parente1d10851522d7262a266f95d54c48eb2b1d8eb9b
openpic: convert simple reg operations to builtin bitops

The openpic code has its own bitmap code to access bits inside of a
bitmap. However, that is overkill when we simply want to check for a
bit inside of a uint32_t.

So instead, let's use normal bit masks and C builtin shifts and ands.

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/openpic.c