Mercurial > libavcodec.hg
comparison dsputil.h @ 10112:e3fc952dd4b2 libavcodec
Make DECLARE_ALIGNED_8 align to 8 bytes, never to 16
The DECLARE_ALIGNED_8 macro is defined to align to 16 bytes instead
the 8 suggested by the name on some CPUs. None of the uses of this
macro ever need 16-byte alignment, cases which once did having been
changed to always specify 16 bytes explicitly.
author | mru |
---|---|
date | Fri, 28 Aug 2009 23:39:02 +0000 |
parents | 7775f6627612 |
children | 4b99f60333ca |
comparison
equal
deleted
inserted
replaced
10111:ebe5812b39a7 | 10112:e3fc952dd4b2 |
---|---|
638 #elif ARCH_ARM | 638 #elif ARCH_ARM |
639 | 639 |
640 extern int mm_flags; | 640 extern int mm_flags; |
641 | 641 |
642 #if HAVE_NEON | 642 #if HAVE_NEON |
643 # define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) | |
644 # define STRIDE_ALIGN 16 | 643 # define STRIDE_ALIGN 16 |
645 #endif | 644 #endif |
646 | 645 |
647 #elif ARCH_PPC | 646 #elif ARCH_PPC |
648 | 647 |
649 extern int mm_flags; | 648 extern int mm_flags; |
650 | 649 |
651 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) | |
652 #define STRIDE_ALIGN 16 | 650 #define STRIDE_ALIGN 16 |
653 | 651 |
654 #elif HAVE_MMI | 652 #elif HAVE_MMI |
655 | 653 |
656 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) | |
657 #define STRIDE_ALIGN 16 | 654 #define STRIDE_ALIGN 16 |
658 | 655 |
659 #else | 656 #else |
660 | 657 |
661 #define mm_flags 0 | 658 #define mm_flags 0 |
662 #define mm_support() 0 | 659 #define mm_support() 0 |
663 | 660 |
664 #endif | 661 #endif |
665 | 662 |
666 #ifndef DECLARE_ALIGNED_8 | |
667 # define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) | 663 # define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
668 #endif | |
669 | 664 |
670 #ifndef STRIDE_ALIGN | 665 #ifndef STRIDE_ALIGN |
671 # define STRIDE_ALIGN 8 | 666 # define STRIDE_ALIGN 8 |
672 #endif | 667 #endif |
673 | 668 |