This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.List | |
import Graphics.Gloss | |
import Graphics.Gloss.Data.Point | |
infixl 6 |+| | |
(x, y) |+| (x', y') = (x + x', y + y') | |
spiral = scanl (|+|) (0, 0) steps | |
where |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFLAGS=-O2 -ffast-math -march=native | |
CXXFLAGS=$(CFLAGS) | |
ifneq (, $(findstring 64, $(shell uname -m))) | |
asm_file=prime64.S | |
x86_64=1 | |
else | |
asm_file=prime32.S | |
endif |
NewerOlder