xref: /freebsd/sys/contrib/openzfs/module/zstd/zstd_sparc.c (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
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