3 Star 0 Fork 1

Gitee 极速下载/isl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://repo.or.cz/isl.git
克隆/下载
isl_multi_apply_explicit_domain_templ.c 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
/*
* Copyright 2017 Sven Verdoolaege
*
* Use of this software is governed by the MIT license
*
* Written by Sven Verdoolaege.
*/
/* Transform the explicit domain of "multi" by applying "fn_domain" or
* "fn_params" to it with extra argument "domain".
* In particular, if the explicit domain is a parameter set,
* then apply "fn_params". Otherwise, apply "fn_domain".
*
* The parameters of "multi" and "domain" are assumed to have been aligned.
*/
static __isl_give MULTI(BASE) *FN(FN(MULTI(BASE),apply_domain),APPLY_DOMBASE)(
__isl_take MULTI(BASE) *multi, __isl_take APPLY_DOM *domain,
__isl_give DOM *(*fn_domain)(DOM *domain, __isl_take APPLY_DOM *set),
__isl_give DOM *(*fn_params)(DOM *domain, __isl_take APPLY_DOM *set))
{
isl_bool is_params;
DOM *multi_dom;
multi_dom = FN(MULTI(BASE),get_explicit_domain)(multi);
is_params = FN(DOM,is_params)(multi_dom);
if (is_params < 0) {
FN(APPLY_DOM,free)(domain);
multi_dom = FN(DOM,free)(multi_dom);
} else if (!is_params) {
multi_dom = fn_domain(multi_dom, domain);
} else {
multi_dom = fn_params(multi_dom, domain);
}
multi = FN(MULTI(BASE),set_explicit_domain)(multi, multi_dom);
return multi;
}
#include <isl_multi_apply_templ.c>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/mirrors/isl.git
git@gitee.com:mirrors/isl.git
mirrors
isl
isl
master

搜索帮助