acrn-hypervisor/hypervisor/include/lib
Xiangyang Wu db01efa047 HV:treewide:Update return type for function fls64 and clz64
Change the return type of function fls64 and clz64 as uint16_t;
When the input is zero, INVALID_ID_INDEX is returned;
Update temporary variable type and return value check of caller
when it call fls64 or clz64;
When input value is zero, clz64 returns 64 directly.

V1-->V2:
        INVALID_BIT_INDEX instead of INVALID_NUMBER;
        Partly revert apicv_pending_intr udpates;
        Add type conversion as needed;
        Coding style fixing.
V2-->V3:
        Correct type conversion;
        fls64 return INVALID_BIT_INDEX directly when
        the input value is zero.
V3-->V4:
        No updates for this part in PATCH V4.

Note: For instruction "bsrq", destination register value
      is undefined when source register value is zero.

Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-07-02 15:11:22 +08:00
..
crypto license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
atomic.h hv: refine the left atomic operation 2018-05-18 10:52:31 +08:00
bits.h HV:treewide:Update return type for function fls64 and clz64 2018-07-02 15:11:22 +08:00
errno.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
list.h HV:header:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
macros.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
mem_mgt.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
rtl.h HV:- Refine strtol() & strtoul() 2018-06-29 15:47:07 +08:00
spinlock.h fix parted of "missing for discarded return value" 2018-06-19 16:21:45 +08:00
sprintf.h hv:replace unsigned long long with uint64_t 2018-06-12 10:21:19 +08:00
stdarg.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
types.h HV:header:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
util.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00