/* Worker function to determine if a CPU feature is set in input CPU feature bit mask buffer. */
BOOLEAN IsCpuFeatureSetInCpuPcd(IN UINT8 *CpuBitMask, IN UINTN CpuBitMaskSize, IN UINT32 Feature)
/* Worker function to determine if a CPU feature is set in input CPU feature bit mask buffer. */
BOOLEAN IsCpuFeatureSetInCpuPcd(IN UINT8 *CpuBitMask, IN UINTN CpuBitMaskSize, IN UINT32 Feature)
{
  if ((Feature >> 3) >= CpuBitMaskSize) {
    return FALSE;
  }
  return ((*(CpuBitMask + (Feature >> 3)) & (1 << (Feature & 0x07))) != 0);
}