C functions for dealing with large numbers