UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
syms_pdb.c
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#ifndef SYMS_PDB_C
4#define SYMS_PDB_C
5
7//~ allen: PDB Hash Function
8
10
13 SYMS_U32 result = 0;
14 SYMS_U8 *ptr = string.str;
15 SYMS_U8 *opl = ptr + (string.size&(~3));
16 for (; ptr < opl; ptr += 4){ result ^= *(SYMS_U32*)ptr; }
17 if ((string.size&2) != 0){ result ^= *(SYMS_U16*)ptr; ptr += 2; }
18 if ((string.size&1) != 0){ result ^= * ptr; }
19 result |= 0x20202020; result ^= (result >> 11); result ^= (result >> 16);
20 return(result);
21}
22
23#endif // SYMS_PDB_C
Definition syms_base.h:296
#define SYMS_API
Definition syms_base.h:29
uint32_t SYMS_U32
Definition syms_crt_overrides.h:38
uint16_t SYMS_U16
Definition syms_crt_overrides.h:37
uint8_t SYMS_U8
Definition syms_crt_overrides.h:36
SYMS_API SYMS_U32 syms_pdb_hashV1(SYMS_String8 string)
Definition syms_pdb.c:12