1/* 2 * Copyright (c) 2004 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 44 unchanged lines hidden (view full) --- 53#else 54#include <machine/endian.h> 55#endif 56 57#if defined(__APPLE__) 58#include <libkern/OSByteOrder.h> 59#endif 60 |
61//These functions actually perform the swapping for parameters 62//of various bit lengths 63inline uint64_t 64swap_byte64(uint64_t x) 65{ 66#if defined(__linux__) 67 return bswap_64(x); 68#elif defined(__APPLE__) --- 131 unchanged lines hidden --- |