From 2a038c0b77704fd53138a2d0bc9d1803d96a1a77 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 18 Apr 2022 07:59:57 -0700 Subject: iter: rename loop_cross and lockstep. loop_cross -> loop_nest lockstep -> parallel --- cppawk-include/iter.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'cppawk-include/iter.h') diff --git a/cppawk-include/iter.h b/cppawk-include/iter.h index 627a43a..23f71fd 100644 --- a/cppawk-include/iter.h +++ b/cppawk-include/iter.h @@ -77,7 +77,7 @@ #define __nd_first(x) (x) #define __nd_next(p, x) p && (x) -#define loop_cross(...) __varexpand2(__cross_first, __cross_next, __VA_ARGS__) +#define loop_nest(...) __varexpand2(__cross_first, __cross_next, __VA_ARGS__) #define __cross_first(args) for (__init_ ## args; \ ((__test_ ## args) || \ @@ -293,16 +293,16 @@ function __loop_argmin(a, arga, b, argb) #define __fini_until(expr) 1 #define __step_until(expr) 1 -#define __temp_lockstep(...) -#define __init_lockstep(...) __prog(__varexpand3(__init_first, __init_next, \ +#define __temp_parallel(...) +#define __init_parallel(...) __prog(__varexpand3(__init_first, __init_next, \ __VA_ARGS__)) -#define __test_lockstep(...) __nd(__varexpand3(__test_first, __test_next, \ +#define __test_parallel(...) __nd(__varexpand3(__test_first, __test_next, \ __VA_ARGS__)) -#define __prep_lockstep(...) (__nd(__varexpand3(__prep_first, __prep_next, \ +#define __prep_parallel(...) (__nd(__varexpand3(__prep_first, __prep_next, \ __VA_ARGS__)) || 1) -#define __fini_lockstep(...) (__nd(__varexpand3(__fini_first, __fini_next, \ +#define __fini_parallel(...) (__nd(__varexpand3(__fini_first, __fini_next, \ __VA_ARGS__)) && 0) -#define __step_lockstep(...) __prog(__varexpand3(__step_first, __step_next, \ +#define __step_parallel(...) __prog(__varexpand3(__step_first, __step_next, \ __VA_ARGS__)) #define __temp_if(test, clause) -- cgit v1.2.3