acrn-hypervisor/hypervisor/lib
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
..
crypto HV: prototyping non-static function 2018-07-16 10:35:54 +08:00
div.c HV:treewide:fix rest of violations related parameter changed 2018-07-27 16:42:19 +08:00
mdelay.c HV:treewide:fix "Attempt to change parameter passed by value" 2018-07-26 09:35:52 +08:00
memory.c hv: code clean up regarding to % and / operations 2018-08-22 15:37:53 +08:00
spinlock.c hv: treewide: fix 'inline function should be declared static' 2018-08-10 10:16:04 +08:00
sprintf.c hv: fixed compiling warning 2018-08-17 12:36:53 +08:00
string.c hv: fixed compiling warning 2018-08-17 12:36:53 +08:00
udelay.c HV: add the missing brackets to loop body 2018-07-12 17:27:29 +08:00