Skip to content

Instantly share code, notes, and snippets.

View xvcxcvxc's full-sized avatar

xvcxcvxc xvcxcvxc

  • 09:14 (UTC -04:00)
View GitHub Profile
0.602.100.6020393
[C++] DFFlagAESAddCreatorIdToSearch2
[C++] DFFlagAUMPAnalytics
[C++] DFFlagAVBURST12153FixNullWelds
[C++] DFFlagAccessCookiesWithUrlEnabled
[C++] DFFlagAdGuiImpressionDisabled
[C++] DFFlagAddAbilityToConfigureTheStreamingGCTimeForTunable
[C++] DFFlagAddAppVersionIntoV2POCStat
[C++] DFFlagAddDynamicHeadTelemetryToSessionTracking2
[C++] DFFlagAddMultToEventIngest
@gmh5225
gmh5225 / hash_fnv1a.h
Created July 10, 2022 01:00 — forked from ruby0x1/hash_fnv1a.h
FNV1a c++11 constexpr compile time hash functions, 32 and 64 bit
#pragma once
#include <stdint.h>
//fnv1a 32 and 64 bit hash functions
// key is the data to hash, len is the size of the data (or how much of it to hash against)
// code license: public domain or equivalent
// post: https://notes.underscorediscovery.com/constexpr-fnv1a/
inline const uint32_t hash_32_fnv1a(const void* key, const uint32_t len) {
local Spring = {} do
Spring.__index = Spring
local pi = math.pi
local exp = math.exp
local sin = math.sin
local cos = math.cos
local sqrt = math.sqrt
function Spring.new(dampingRatio, frequency, position)