Added int32 versions of the endian-dependent code.