From f92a757aae2bd379a60b8b17c7fec673a917701a Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 14 Feb 2015 14:46:44 +0100 Subject: Vectorize accumulation Also vectorizes some color functions and switches to double accumulation buffer. Does not seem to be slower. --- flam3.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'flam3.h') diff --git a/flam3.h b/flam3.h index 0107672..a92c203 100644 --- a/flam3.h +++ b/flam3.h @@ -36,10 +36,12 @@ char *flam3_version(); #define flam3_print_edits (1) #define flam3_dont_print_edits (0) +#include "vector.h" + //typedef double flam3_palette[256][3]; typedef struct { double index; - double color[4]; + double4 color; } flam3_palette_entry; typedef flam3_palette_entry flam3_palette[256]; -- cgit v1.2.3