Skip to content

Instantly share code, notes, and snippets.

View DukMastaaa's full-sized avatar
🐢
turtle

DukMastaaa

🐢
turtle
View GitHub Profile
@ArhanChaudhary
ArhanChaudhary / _fastest_rubiks_operations
Last active August 14, 2025 14:07
Fastest Rubik's cube composition and inversion operations (see https://godbolt.org/z/eYevrErG7)
NOTE: all instruction counts ignore the initial and final SIMD register load instructions
AVX2 composition: 5 instructions, averaging 700M/sec on an Intel Xeon E5-2667 v3
AVX2 inversion: 26 instructions, averaging 175M/sec on an Intel Xeon E5-2667 v3
ARM64 composition: 19 instructions, averaging 870M/sec on an Apple M4
ARM64 inversion: 48 instructions, averaging 400M/sec on an Apple M4
@iwalpola
iwalpola / stm32_gpio_reg.md
Last active April 8, 2025 10:07
STM32 GPIO registers cheatsheet
@maxtruxa
maxtruxa / Makefile
Last active May 12, 2024 21:49
Generic makefile for C/C++ with automatic dependency generation, support for deep source file hierarchies and custom intermediate directories.
# output binary
BIN := test
# source files
SRCS := \
test.cpp
# files included in the tarball generated by 'make dist' (e.g. add LICENSE file)
DISTFILES := $(BIN)
@mauriciopoppe
mauriciopoppe / _README.md
Last active November 8, 2025 11:14
Generic Makefile example for a C++ project