view libdvdread/bswap.h @ 27906:257f974b7cd9

Add yasm support to the build system. This allows to use yasm assembler optimizations from FFmpeg code, in particular, from libavcodec/fft.c.
author bircoph
date Sun, 16 Nov 2008 13:04:16 +0000
parents ea01824701a5
children
line wrap: on
line source

#ifndef DVDREAD_BSWAP_H
#define DVDREAD_BSWAP_H

#include "libavutil/bswap.h"

#ifdef WORDS_BIGENDIAN
#define B2N_16(x)
#define B2N_32(x)
#define B2N_64(x)
#else
#define B2N_16(x) x = bswap_16(x)
#define B2N_32(x) x = bswap_32(x)
#define B2N_64(x) x = bswap_64(x)
#endif

#endif