Skip to content

Instantly share code, notes, and snippets.

View charlesastaylor's full-sized avatar
🏠
Working from home

Charles Taylor charlesastaylor

🏠
Working from home
View GitHub Profile
@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
@mmozeiko
mmozeiko / build.cmd
Last active July 13, 2024 21:23
download & build llvm+clang on Windows
@echo off
setlocal enabledelayedexpansion
rem !!! build requirements !!!
rem Visual Studio 2022 - https://visualstudio.microsoft.com/vs/
rem 7-Zip - https://www.7-zip.org/download.html
rem Python - https://www.python.org/downloads/
rem CMake - http://www.cmake.org/download/
rem ninja.exe - https://github.com/ninja-build/ninja/releases/latest
@seanjensengrey
seanjensengrey / octal_x86.txt
Last active July 8, 2024 22:07
x86 is an octal machine
# source:http://geocities.com/SiliconValley/heights/7052/opcode.txt
From: mark@omnifest.uwm.edu (Mark Hopkins)
Newsgroups: alt.lang.asm
Subject: A Summary of the 80486 Opcodes and Instructions
(1) The 80x86 is an Octal Machine
This is a follow-up and revision of an article posted in alt.lang.asm on
7-5-92 concerning the 80x86 instruction encoding.
The only proper way to understand 80x86 coding is to realize that ALL 80x86