VirtualBox

Changeset 65981 in vbox


Ignore:
Timestamp:
Mar 7, 2017 1:27:06 PM (8 years ago)
Author:
vboxsync
Message:

PGMAllBth.h: a couple of more 32-bit shift optimizations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r65955 r65981  
    34003400# if PGM_WITH_PAGING(PGM_GST_TYPE, PGM_SHW_TYPE)
    34013401#  if PGM_GST_TYPE == PGM_TYPE_32BIT
    3402     const unsigned  iPDSrc = GCPtrPage >> GST_PD_SHIFT;
     3402    const unsigned  iPDSrc = (uint32_t)GCPtrPage >> GST_PD_SHIFT;
    34033403    PGSTPD          pPDSrc = pgmGstGet32bitPDPtr(pVCpu);
    34043404#  elif PGM_GST_TYPE == PGM_TYPE_PAE
     
    35623562# if PGM_WITH_PAGING(PGM_GST_TYPE, PGM_SHW_TYPE)
    35633563#  if PGM_GST_TYPE == PGM_TYPE_32BIT
    3564     const unsigned  iPDSrc = GCPtrPage >> GST_PD_SHIFT;
     3564    const unsigned  iPDSrc = (uint32_t)GCPtrPage >> GST_PD_SHIFT;
    35653565    PGSTPD          pPDSrc = pgmGstGet32bitPDPtr(pVCpu);
    35663566
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette