// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. #pragma once #include "Engine/Platform/Defines.h" /// /// Default capacity for the dictionaries (amount of space for the elements). /// #ifndef DICTIONARY_DEFAULT_CAPACITY #if PLATFORM_DESKTOP #define DICTIONARY_DEFAULT_CAPACITY 256 #else #define DICTIONARY_DEFAULT_CAPACITY 64 #endif #endif /// /// Default slack space divider for the dictionaries. /// #define DICTIONARY_DEFAULT_SLACK_SCALE 3 /// /// Function for dictionary that tells how change hash index during iteration (size param is a buckets table size). /// #define DICTIONARY_PROB_FUNC(size, numChecks) (numChecks) //#define DICTIONARY_PROB_FUNC(size, numChecks) (1)