aboutsummaryrefslogtreecommitdiff
path: root/src/list_tmp.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-05-04 06:51:25 -0700
committerThomas White <taw@bitwiz.org.uk>2010-05-04 06:51:25 -0700
commit1c7cb5afd975e4d57d3e7fe242a0aaae8f6b01a4 (patch)
tree4366cc4e5457ce59ef1b6c105f583e78684dcb1b /src/list_tmp.h
parenteee5f3a9dac03134ee2269968ad870b0c812c036 (diff)
pattern_sim: Preparations for more advanced merging
Diffstat (limited to 'src/list_tmp.h')
-rw-r--r--src/list_tmp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/list_tmp.h b/src/list_tmp.h
index 7b2c9d0c..2b8f703d 100644
--- a/src/list_tmp.h
+++ b/src/list_tmp.h
@@ -96,6 +96,12 @@ static inline TYPE *LABEL(new_list)(void)
}
+static inline void LABEL(zero_list)(TYPE *ref)
+{
+ memset(ref, 0, IDIM*IDIM*IDIM*sizeof(TYPE));
+}
+
+
#undef LABEL
#undef TYPE
#undef ERROR_T