Skip to content

Commit

Permalink
use macro instead of static function
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyan4973 committed Jan 28, 2025
1 parent 9376b76 commit 749e277
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions xxhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -2419,16 +2419,13 @@ static void* XXH_memset(void* dest, int value, size_t size)
#endif

#ifndef XXH_memcmp
/* Note: only needed by XXH128 */
# include <string.h>
/*!
* @internal
* @brief XXH_memcmp() macro can be redirected at compile time
* Note: only needed by XXH128.
*/
static int XXH_memcmp(void* dest, const void* src, size_t size)
{
return memcmp(dest,src,size);
}
# include <string.h>
# define XXH_memcmp memcmp
#endif


Expand Down

0 comments on commit 749e277

Please sign in to comment.