mirror of
https://review.haiku-os.org/buildtools
synced 2025-01-18 20:38:39 +01:00
22 lines
489 B
C
22 lines
489 B
C
|
/*
|
||
|
* Use of this software is governed by the MIT license
|
||
|
*
|
||
|
* Written by Sven Verdoolaege
|
||
|
*/
|
||
|
|
||
|
#define xFN(TYPE,NAME) TYPE ## _ ## NAME
|
||
|
#define FN(TYPE,NAME) xFN(TYPE,NAME)
|
||
|
|
||
|
/* Project out all parameters from "obj" by existentially quantifying
|
||
|
* over them.
|
||
|
*/
|
||
|
__isl_give TYPE *FN(TYPE,project_out_all_params)(__isl_take TYPE *obj)
|
||
|
{
|
||
|
isl_size n;
|
||
|
|
||
|
n = FN(TYPE,dim)(obj, isl_dim_param);
|
||
|
if (n < 0)
|
||
|
return FN(TYPE,free)(obj);
|
||
|
return FN(TYPE,project_out)(obj, isl_dim_param, 0, n);
|
||
|
}
|