VirtualBox

Changeset 52353 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Aug 11, 2014 7:16:55 PM (10 years ago)
Author:
vboxsync
Message:

SUPDrv-win.cpp: drop mymemcmp, we've got an assembly memcmp implementation from the runtime available now.

Location:
trunk/src/VBox/HostDrivers/Support
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h

    r51770 r52353  
    7373#   endif
    7474#   include <memory.h>
    75 #   define memcmp(a,b,c) mymemcmp(a,b,c)
    76     int VBOXCALL mymemcmp(const void *, const void *, size_t);
    7775    RT_C_DECLS_END
    7876
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp

    r52204 r52353  
    19711971
    19721972
    1973 
    1974 /** @todo use the nocrt stuff? */
    1975 int VBOXCALL mymemcmp(const void *pv1, const void *pv2, size_t cb)
    1976 {
    1977     const uint8_t *pb1 = (const uint8_t *)pv1;
    1978     const uint8_t *pb2 = (const uint8_t *)pv2;
    1979     for (; cb > 0; cb--, pb1++, pb2++)
    1980         if (*pb1 != *pb2)
    1981             return *pb1 - *pb2;
    1982     return 0;
    1983 }
    1984 
    1985 
    19861973#if 0 /* See alternative in SUPDrvA-win.asm */
    19871974/**
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