On Sun, 28 Oct 2012, Marc Glisse wrote:

[there are 4 real_*p that only differ by 1 character]

It is true that we could have a single function in tree.c:
bool real_intcstp (const_tree, int);

The helper function could even take a REAL_VALUE_TYPE as second argument, so the non-inline part doesn't have more work than currently.

Trying to also merge the real_*p predicates with the integer_*p predicates seems harder (in fancy C++, we'd have a number of ways of writing the code for complex and vectors only once, but I don't think we want to go there).

with possible trivial wrappers in tree.h.

--
Marc Glisse

Reply via email to