Changeset View
Changeset View
Standalone View
Standalone View
include/llvm/Support/SwapByteOrder.h
Show All 12 Lines | |||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
#ifndef LLVM_SUPPORT_SWAPBYTEORDER_H | #ifndef LLVM_SUPPORT_SWAPBYTEORDER_H | ||||
#define LLVM_SUPPORT_SWAPBYTEORDER_H | #define LLVM_SUPPORT_SWAPBYTEORDER_H | ||||
#include "llvm/Support/Compiler.h" | #include "llvm/Support/Compiler.h" | ||||
#include "llvm/Support/DataTypes.h" | #include "llvm/Support/DataTypes.h" | ||||
#include <cstddef> | #include <cstddef> | ||||
#if defined(_MSC_VER) && !defined(_DEBUG) | |||||
#include <stdlib.h> | |||||
#endif | |||||
namespace llvm { | namespace llvm { | ||||
namespace sys { | namespace sys { | ||||
/// SwapByteOrder_16 - This function returns a byte-swapped representation of | /// SwapByteOrder_16 - This function returns a byte-swapped representation of | ||||
/// the 16-bit argument. | /// the 16-bit argument. | ||||
inline uint16_t SwapByteOrder_16(uint16_t value) { | inline uint16_t SwapByteOrder_16(uint16_t value) { | ||||
#if defined(_MSC_VER) && !defined(_DEBUG) | #if defined(_MSC_VER) && !defined(_DEBUG) | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |