/* * Copyright (c) 2010 The WebM project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree.
*/
/* \file * \brief Provides portable memory access primitives for operating on aligned * data * * This file is split from mem_ops.h for easier maintenance. See mem_ops.h * for a more detailed description of these primitives.
*/ #ifndef INCLUDED_BY_MEM_OPS_H #error Include mem_ops.h, not mem_ops_aligned.h directly. #endif
/* Architectures that provide instructions for doing this byte swapping * could redefine these macros.
*/ #define swap_endian_16(val, raw) \ do { \
val = (uint16_t)(((raw >> 8) & 0x00ff) | ((raw << 8) & 0xff00)); \
} while (0) #define swap_endian_32(val, raw) \ do { \
val = ((raw >> 24) & 0x000000ff) | ((raw >> 8) & 0x0000ff00) | \
((raw << 8) & 0x00ff0000) | ((raw << 24) & 0xff000000); \
} while (0) #define swap_endian_16_se(val, raw) \ do { \
swap_endian_16(val, raw); \
val = ((val << 16) >> 16); \
} while (0) #define swap_endian_32_se(val, raw) swap_endian_32(val, raw)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.