VirtualBox

vbox的更動 59747 路徑 trunk/src/VBox/Debugger


忽略:
時間撮記:
2016-2-19 下午11:18:18 (9 年 以前)
作者:
vboxsync
訊息:

iprt/asm.h: Cleaned up the ASMMemIsAll8/U32 mess and implmeneted the former in assembly. (Found inverted usage due to bad naming in copyUtf8Block, but it is fortunately an unused method.) Replaces the complicated ASMBitFirstSet based scanning in RTSgBufIsZero with a simple call to the new ASMMemIsZero function.

位置:
trunk/src/VBox/Debugger
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Debugger/DBGPlugInCommonELFTmpl.cpp.h

    r56296 r59747  
    125125    if (pEhdr->e_shentsize != sizeof(Elf_Shdr))
    126126        return VERR_BAD_EXE_FORMAT;
    127     if (ASMMemIsAll8(&pEhdr->e_ident[EI_PAD], EI_NIDENT - EI_PAD, 0) != NULL) //??
     127    if (!ASMMemIsZero(&pEhdr->e_ident[EI_PAD], EI_NIDENT - EI_PAD)) //??
    128128        return VERR_BAD_EXE_FORMAT;
    129129
  • trunk/src/VBox/Debugger/DBGPlugInSolaris.cpp

    r57358 r59747  
    475475        ||  Module.hdr.e_ident[EI_DATA] != ELFDATA2LSB
    476476        ||  Module.hdr.e_ident[EI_VERSION] != EV_CURRENT
    477         ||  ASMMemIsAll8(&Module.hdr.e_ident[EI_PAD], EI_NIDENT - EI_PAD, 0) != NULL
     477        ||  !ASMMemIsZero(&Module.hdr.e_ident[EI_PAD], EI_NIDENT - EI_PAD)
    478478        )
    479479        return;
     
    622622        ||  Module.hdr.e_ident[EI_DATA] != ELFDATA2LSB
    623623        ||  Module.hdr.e_ident[EI_VERSION] != EV_CURRENT
    624         ||  ASMMemIsAll8(&Module.hdr.e_ident[EI_PAD], EI_NIDENT - EI_PAD, 0) != NULL
     624        ||  !ASMMemIsZero(&Module.hdr.e_ident[EI_PAD], EI_NIDENT - EI_PAD)
    625625        )
    626626        return;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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