vbox的更動 13186 路徑 trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
- 時間撮記:
- 2008-10-10 下午10:21:18 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r13152 r13186 1748 1748 /* optimize for the case where access is completely within the first page. */ 1749 1749 size_t cbPage = PAGE_SIZE - (GCPhysSrc & PAGE_OFFSET_MASK); 1750 if (RT_LIKELY(cb < cbPage))1750 if (RT_LIKELY(cb <= cbPage)) 1751 1751 { 1752 1752 memcpy(pvDst, pvSrc, cb); … … 1773 1773 1774 1774 /* last page? */ 1775 if (cb < PAGE_SIZE)1775 if (cb <= PAGE_SIZE) 1776 1776 { 1777 1777 memcpy(pvDst, pvSrc, cb); … … 1822 1822 /* optimize for the case where access is completely within the first page. */ 1823 1823 size_t cbPage = PAGE_SIZE - (GCPhysDst & PAGE_OFFSET_MASK); 1824 if (RT_LIKELY(cb < cbPage))1824 if (RT_LIKELY(cb <= cbPage)) 1825 1825 { 1826 1826 memcpy(pvDst, pvSrc, cb); … … 1847 1847 1848 1848 /* last page? */ 1849 if (cb < PAGE_SIZE)1849 if (cb <= PAGE_SIZE) 1850 1850 { 1851 1851 memcpy(pvDst, pvSrc, cb); … … 1894 1894 /* optimize for the case where access is completely within the first page. */ 1895 1895 size_t cbPage = PAGE_SIZE - ((RTGCUINTPTR)GCPtrSrc & PAGE_OFFSET_MASK); 1896 if (RT_LIKELY(cb < cbPage))1896 if (RT_LIKELY(cb <= cbPage)) 1897 1897 { 1898 1898 memcpy(pvDst, pvSrc, cb); … … 1919 1919 1920 1920 /* last page? */ 1921 if (cb < PAGE_SIZE)1921 if (cb <= PAGE_SIZE) 1922 1922 { 1923 1923 memcpy(pvDst, pvSrc, cb); … … 1966 1966 /* optimize for the case where access is completely within the first page. */ 1967 1967 size_t cbPage = PAGE_SIZE - ((RTGCUINTPTR)GCPtrDst & PAGE_OFFSET_MASK); 1968 if (RT_LIKELY(cb < cbPage))1968 if (RT_LIKELY(cb <= cbPage)) 1969 1969 { 1970 1970 memcpy(pvDst, pvSrc, cb); … … 1991 1991 1992 1992 /* last page? */ 1993 if (cb < PAGE_SIZE)1993 if (cb <= PAGE_SIZE) 1994 1994 { 1995 1995 memcpy(pvDst, pvSrc, cb); … … 2041 2041 /* optimize for the case where access is completely within the first page. */ 2042 2042 size_t cbPage = PAGE_SIZE - ((RTGCUINTPTR)GCPtrDst & PAGE_OFFSET_MASK); 2043 if (RT_LIKELY(cb < cbPage))2043 if (RT_LIKELY(cb <= cbPage)) 2044 2044 { 2045 2045 memcpy(pvDst, pvSrc, cb); … … 2068 2068 2069 2069 /* last page? */ 2070 if (cb < PAGE_SIZE)2070 if (cb <= PAGE_SIZE) 2071 2071 { 2072 2072 memcpy(pvDst, pvSrc, cb);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器