REORG: tools/intops: move the integer-specific functions from tools to intops
This was already the case for their declaration in intops.h instead of
tools.h, but we were still lacking an intops.c file, so everything
remained stuffed anywhere in tools.c, difficult to find.
This moves all the functions mentioned in intops.h from tools.c to a new
intops.c file. That's roughly 450 less lines in tools.c and a slightly
better organized file where it should be easier in the future to locate
the function one needs.