Add a signed int version of the same function