2 * Copyright 2010 INRIA Saclay
4 * Use of this software is governed by the MIT license
6 * Written by Sven Verdoolaege, INRIA Saclay - Ile-de-France,
7 * Parc Club Orsay Universite, ZAC des vignes, 4 rue Jacques Monod,
11 #include <isl_pw_macro.h>
13 /* Apply "fn" to each of the base expressions of "pw".
14 * The function is assumed to have no effect on the default value
15 * (i.e., zero for those objects with a default value).
17 static __isl_give PW
*FN(PW
,un_op
)(__isl_take PW
*pw
,
18 __isl_give EL
*(*fn
)(__isl_take EL
*el
))
23 n
= FN(PW
,n_piece
)(pw
);
25 return FN(PW
,free
)(pw
);
27 for (i
= 0; i
< n
; ++i
) {
30 el
= FN(PW
,take_base_at
)(pw
, i
);
32 pw
= FN(PW
,restore_base_at
)(pw
, i
, el
);