Functions htons, htonl, ffs modified for mipsr2 architecture.