diff without -c or -u is sort of useless #include <asm/div64.h> isn't even vaguely portable if the point is just to do int64 math, great, and probably that's enough, but this is an implementation which isn't useful out of the box.