xref: /freebsd/sys/contrib/openzfs/module/zstd/zstd_sparc.c (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1 #ifdef __sparc__
2 #include <stdint.h>
3 #include <sys/byteorder.h>
4 #include "include/sparc_compat.h"
5 uint64_t __bswapdi2(uint64_t in) {
6 	return (BSWAP_64(in));
7 }
8 uint32_t __bswapsi2(uint32_t in) {
9 	return (BSWAP_32(in));
10 }
11 #endif
12