mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 15:29:11 +01:00
25 lines
684 B
C
25 lines
684 B
C
/*
|
|
* Copyright 2019 Cerebras Systems
|
|
*
|
|
* Use of this software is governed by the MIT license
|
|
*
|
|
* Written by Sven Verdoolaege,
|
|
* Cerebras Systems, 175 S San Antonio Rd, Los Altos, CA, USA
|
|
*/
|
|
|
|
/* Return the (elementwise) minimum of "multi1" and "multi2".
|
|
*/
|
|
__isl_give MULTI(BASE) *FN(MULTI(BASE),min)(__isl_take MULTI(BASE) *multi1,
|
|
__isl_take MULTI(BASE) *multi2)
|
|
{
|
|
return FN(MULTI(BASE),bin_op)(multi1, multi2, &FN(EL,min));
|
|
}
|
|
|
|
/* Return the (elementwise) maximum of "multi1" and "multi2".
|
|
*/
|
|
__isl_give MULTI(BASE) *FN(MULTI(BASE),max)(__isl_take MULTI(BASE) *multi1,
|
|
__isl_take MULTI(BASE) *multi2)
|
|
{
|
|
return FN(MULTI(BASE),bin_op)(multi1, multi2, &FN(EL,max));
|
|
}
|