introduce isl_val_pow2 as an alternative name for isl_val_2exp
commit9ad97d04b847193a18a2f37666db79ffdfe6ed09
authorTobias Grosser <tobias@grosser.es>
Tue, 7 Aug 2018 05:02:37 +0000 (7 07:02 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Tue, 7 Aug 2018 17:48:34 +0000 (7 19:48 +0200)
tree42be3f2a6cf7cbb8bd88e76a5fcfb801c3469f1e
parent44534fc75cb4d67f6aa74ec201b0b0bbcfd7ae2a
introduce isl_val_pow2 as an alternative name for isl_val_2exp

Functions that have names starting with integer literals rather than
letters are invalid both for the python and for the C++ bindings.
This commit adds isl_val_pow2 as an alternative name for isl_val_2exp
to make it possible to expose this function in the python and C++ bindings.

While it would have been possible to rename the function during bindings
generation similar to the union -> unite rename already performed, for
consistency between the different bindings and the C interface itself it
is preferable to use a better function name. (This was not possible in
the 'union/unite' case as the term 'union' is indeed preferable and
works well for both C and python).

Signed-off-by: Tobias Grosser <tobias@grosser.es>
Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
doc/user.pod
include/isl/val.h
isl_test.c
isl_val.c