VirtualBox

Changeset 21749 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Jul 21, 2009 1:06:29 PM (16 years ago)
Author:
vboxsync
Message:

Runtime: optimization hint

Location:
trunk/src/VBox/Runtime/common/checksum
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/checksum/manifest.cpp

    r21748 r21749  
    259259        int cbRet = RTStrmPrintf(pStream, "SHA1 (%s)= %s\n", RTPathFilename(papszFiles[i]), pszDigest);
    260260        RTStrFree(pszDigest);
    261         if (cbRet < 0)
     261        if (RT_UNLIKELY(cbRet < 0))
    262262        {
    263263            rc = VERR_INTERNAL_ERROR;
  • trunk/src/VBox/Runtime/common/checksum/sha1.cpp

    r21748 r21749  
    9494                             pucDig[10], pucDig[11], pucDig[12], pucDig[13], pucDig[14],
    9595                             pucDig[15], pucDig[16], pucDig[17], pucDig[18], pucDig[19]);
    96     if (cbRet == -1)
     96    if (RT_UNLIKELY(cbRet == -1))
    9797        rc = VERR_INTERNAL_ERROR;
    9898
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