[FFmpeg-cvslog] r12375 - in trunk: configure libavutil/bswap.h
Reimar Döffinger
Reimar.Doeffinger
Sat Mar 8 23:32:03 CET 2008
On Sat, Mar 08, 2008 at 10:07:11PM +0000, M?ns Rullg?rd wrote:
> Reimar D?ffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> writes:
>
> > On Sat, Mar 08, 2008 at 07:33:08PM +0100, mru wrote:
> >> Modified: trunk/libavutil/bswap.h
> >> ==============================================================================
> >> --- trunk/libavutil/bswap.h (original)
> >> +++ trunk/libavutil/bswap.h Sat Mar 8 19:33:07 2008
> >> @@ -56,7 +56,7 @@ static av_always_inline uint16_t bswap_1
> >> static av_always_inline uint32_t bswap_32(uint32_t x)
> >> {
> >> #if defined(ARCH_X86)
> >> -#if __CPU__ != 386
> >> +#ifdef HAVE_BSWAP
> >> __asm("bswap %0":
> >> "=r" (x) :
> >> #else
> >
> > Wouldn't then
> > #ifdef HAVE_BSWAP
> > ..
> > #elif defined(ARCH_X86)
> > ...
> >
> > Be even a bit simpler?
>
> bswap is an x86 instruction. If it exists on some other CPU, there's
> no telling what it will do.
configure will never set HAVE_BSWAP if we are not on x86.
> All the architecture-specific HAVE_* settings should probably be
> renamed to include the architecture in the name, e.g. HAVE_X86_BSWAP.
Maybe, but that is only slightly related...
More information about the ffmpeg-cvslog
mailing list