Skip to content

Instantly share code, notes, and snippets.

View AliElSaleh's full-sized avatar
🎯
Focusing

Ali El Saleh AliElSaleh

🎯
Focusing
View GitHub Profile
@AliElSaleh
AliElSaleh / keybase.md
Created May 19, 2019 00:54
Keybase proof

Keybase proof

I hereby claim:

  • I am alielsaleh on github.
  • I am thecryptonite (https://keybase.io/thecryptonite) on keybase.
  • I have a public key ASDOsQob6MnD_v0dJfx_29nHqDPYF_hpCdi5iKDczdmEuQo

To claim this, I am signing this object:

@AliElSaleh
AliElSaleh / HaversineParse.c
Last active March 14, 2023 21:15
Haversine Distance Problem (Loading and Parsing JSON, Performing SIMD/Non-SIMD Math) **Code will not compile** this is using my own code base/engine. Also uses a SIMD library called "simde", which provides extra functionality like trigonometric functions. You will need an AVX2 capable CPU to run the SIMD code
#include "simde/simde-math.h"
#include "simde/x86/avx2.h"
#include "simde/x86/svml.h"
#include <Windows.h>
STRUCT(HaversineParseData)
{
char* Base; // 8
u64 BytesToProcess; // 8