acrn-hypervisor/hypervisor/debug
Shiqing Gao 42aaf5d46f hv: code clean up regarding to % and / operations
- Clean up some code regarding to % and / operations since bit
  operations are faster.
        x % 64U ---> x & 0x3fU
        x % 32U ---> x & 0x1fU
        x % 16U ---> x & 0xfU
        x % 8U  ---> x & 0x7U
        x % 4U  ---> x & 0x3U
        x % 2U  ---> x & 0x1U

        x / 64U ---> x >> 6U
        x / 32U ---> x >> 5U
        x / 16U ---> x >> 4U
        x / 8U  ---> x >> 3U
        x / 4U  ---> x >> 2U
        x / 2U  ---> x >> 1U
- Minor changes regarding to coding styles

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-08-22 15:37:53 +08:00
..
console.c hv:fixed several return value violations 2018-08-20 09:51:07 +08:00
dump.c hv: code clean up regarding to % and / operations 2018-08-22 15:37:53 +08:00
logmsg.c hv:fixed MISRA-C return value violations 2018-08-21 09:54:45 +08:00
printf.c hv: treewide: fix 'Potential side effect problem in expression' 2018-08-08 10:50:06 +08:00
sbuf.c HV: Logical conjunction needs brackets 2018-08-14 09:53:32 +08:00
shell_priv.h HV: refine shell.c & shell_priv.h 2018-08-14 09:54:48 +08:00
shell.c hv: code clean up regarding to % and / operations 2018-08-22 15:37:53 +08:00
uart16550.c hv:Rename port/mmio read and write APIs 2018-08-02 14:03:38 +08:00
uart16550.h hv:cleanup console/uart code 2018-08-02 11:25:40 +08:00
vuart.c hv: code clean up regarding to % and / operations 2018-08-22 15:37:53 +08:00