Skip to content

Instantly share code, notes, and snippets.

View illwieckz's full-sized avatar
👀
…thinking

Thomas Debesse illwieckz

👀
…thinking
View GitHub Profile
@illwieckz
illwieckz / rsqrt.c
Created January 20, 2025 04:33 — forked from ashvardanian/rsqrt.c
Estimate the accuracy of `rsqrt` approximations in Arm NEON
// This script estimates the maximum errors of `rsqrt` approximation for
// ARM NEON, SSE, AVX2, and AVX-512.
//
// Compile with Clang or GCC:
//
// $ gcc rsqrt.c -o rsqrt -std=c99 -lm -march=native -O3 && time ./rsqrt
// $ gcc rsqrt.c -o rsqrt -std=c99 -lm -march=skylake-avx512 -O3 && time ./rsqrt
// $ gcc rsqrt.c -o rsqrt -std=c99 -lm -march=haswell -O3 && time ./rsqrt
// $ gcc rsqrt.c -o rsqrt -std=c99 -lm -march=westmere -O3 && time ./rsqrt
//
@illwieckz
illwieckz / list-unvanquished-dev-feeds.sh
Created May 26, 2017 21:57
List unvanquished dev feeds
#! /bin/sh
listGitHubUser () {
cat <<-EOF
DaemonEngine
Unvanquished
UnvanquishedAssets
EOF
}
@illwieckz
illwieckz / extract_daemon.md
Last active April 23, 2017 16:22
Shell script to extract Dæmon engine from Unvanquished source tree, preserving branches and tagg, readding submodules in master.