summaryrefslogtreecommitdiff
path: root/flam3.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-04-25 12:17:12 +0200
committerLars-Dominik Braun <lars@6xq.net>2015-05-02 21:36:45 +0200
commit99f384b4d61dbde135d63fad7f89c3451ec2e4c0 (patch)
treef6b782c1520e068d572d98359498d746a6f7355d /flam3.h
parent697f57743e560fad2264b7a2039795432ca5b3a8 (diff)
downloadpucket-99f384b4d61dbde135d63fad7f89c3451ec2e4c0.tar.gz
pucket-99f384b4d61dbde135d63fad7f89c3451ec2e4c0.tar.bz2
pucket-99f384b4d61dbde135d63fad7f89c3451ec2e4c0.zip
Store pointer to array element once
Instead of indexing the array over and over
Diffstat (limited to 'flam3.h')
-rw-r--r--flam3.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/flam3.h b/flam3.h
index 9008f4e..e533833 100644
--- a/flam3.h
+++ b/flam3.h
@@ -436,8 +436,9 @@ void flam3_add_xforms(flam3_genome *cp, int num_to_add, int interp_padding, int
void flam3_delete_xform(flam3_genome *thiscp, int idx_to_delete);
void flam3_copy_xform(flam3_xform *dest, flam3_xform *src);
void flam3_copy(flam3_genome *dest, const flam3_genome * const src);
-void flam3_copyx(flam3_genome *dest, flam3_genome *src, int num_std, int num_final);
-void flam3_copy_params(flam3_xform *dest, flam3_xform *src, int varn);
+void flam3_copyx(flam3_genome * restrict dest, flam3_genome * restrict src,
+ int dest_std_xforms, int dest_final_xform);
+void flam3_copy_params(flam3_xform * restrict dest, flam3_xform * restrict src, int varn);
unsigned short* flam3_create_xform_distrib(flam3_genome *cp);
int flam3_create_chaos_distrib(flam3_genome *cp, int xi, unsigned short *xform_distrib);