acrn-hypervisor/hypervisor/arch/x86/guest
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
..
guest.c HV: Add const qualifiers where required 2018-08-17 10:02:12 +08:00
instr_emul.c hv: fixed compiling warning 2018-08-17 12:36:53 +08:00
instr_emul.h HV: instr_emul: Remove dead code 2018-08-07 12:09:22 +08:00
mptable.c hv: fix size issue in mptable guest copy - ACRN partition mode 2018-08-17 10:06:38 +08:00
pm.c HV: Logical conjunction needs brackets under /arch/x86/guest 2018-08-14 09:53:32 +08:00
ucode.c hv: get correct fault address for copy_to/from_gva 2018-08-09 14:46:13 +08:00
vcpu.c hv: vmx: fix 'Array has no bounds specified' 2018-08-21 13:03:28 +08:00
vlapic_priv.h HV:refine 'apic_page' & 'pir_desc' in 'struct acrn_vlapic' 2018-08-22 12:52:07 +08:00
vlapic.c hv: code clean up regarding to % and / operations 2018-08-22 15:37:53 +08:00
vm.c hv: Add vrtc emulation support for ACRN partition mode 2018-08-16 16:23:11 +08:00
vmcall.c HV: Enclose debug specific code with #ifdef HV_DEBUG 2018-08-15 11:17:29 +08:00
vmsr.c hv: code clean up regarding to % and / operations 2018-08-22 15:37:53 +08:00