clip missing in 64 bit for some reason, so added the macro in the .c