Merge branch 'maint'
[isl.git] / isl_multi_min_max_templ.c
blob5a1959290e94992159a4c0bdafa449b7284a5a52
1 /*
2 * Copyright 2019 Cerebras Systems
4 * Use of this software is governed by the MIT license
6 * Written by Sven Verdoolaege,
7 * Cerebras Systems, 175 S San Antonio Rd, Los Altos, CA, USA
8 */
10 /* Return the (elementwise) minimum of "multi1" and "multi2".
12 __isl_give MULTI(BASE) *FN(MULTI(BASE),min)(__isl_take MULTI(BASE) *multi1,
13 __isl_take MULTI(BASE) *multi2)
15 return FN(MULTI(BASE),bin_op)(multi1, multi2, &FN(EL,min));
18 /* Return the (elementwise) maximum of "multi1" and "multi2".
20 __isl_give MULTI(BASE) *FN(MULTI(BASE),max)(__isl_take MULTI(BASE) *multi1,
21 __isl_take MULTI(BASE) *multi2)
23 return FN(MULTI(BASE),bin_op)(multi1, multi2, &FN(EL,max));