Skip to content

Instantly share code, notes, and snippets.

View december1981's full-sized avatar
🎯
Focusing

Stephen Brown december1981

🎯
Focusing
View GitHub Profile
; demo adding an array of u16s and accumulating them into a s32
; we load 8 bytes at a time (4 words) into a simd register and use simd instructions to accumulate.
; compile with nasm for elf64 target to executable "accum"
;; nasm -felf64 -o accum.o accum.s
;; ld --dynamic-linker /lib64/ld-linux-x86-64.so.2 accum.o -o accum -lc
;;
global _start