byteswap.hh (3972:2c65c89843c5) | byteswap.hh (3980:9bcb2a2e9bb8) |
---|---|
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; --- 33 unchanged lines hidden (view full) --- 42 43// This lets us figure out what the byte order of the host system is 44#if defined(linux) 45#include <endian.h> 46// If this is a linux system, lets used the optimized definitions if they exist. 47// If one doesn't exist, we pretty much get what is listed below, so it all 48// works out 49#include <byteswap.h> | 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; --- 33 unchanged lines hidden (view full) --- 42 43// This lets us figure out what the byte order of the host system is 44#if defined(linux) 45#include <endian.h> 46// If this is a linux system, lets used the optimized definitions if they exist. 47// If one doesn't exist, we pretty much get what is listed below, so it all 48// works out 49#include <byteswap.h> |
50#elif defined (__sun__) | 50#elif defined (__sun) |
51#include <sys/isa_defs.h> 52#else 53#include <machine/endian.h> 54#endif 55 56#if defined(__APPLE__) 57#include <libkern/OSByteOrder.h> 58#endif --- 126 unchanged lines hidden --- | 51#include <sys/isa_defs.h> 52#else 53#include <machine/endian.h> 54#endif 55 56#if defined(__APPLE__) 57#include <libkern/OSByteOrder.h> 58#endif --- 126 unchanged lines hidden --- |