check byte order under diffent platforms