]> git.sesse.net Git - ffmpeg/commitdiff
Merge commit '0af8a72174108b9bb482f1073a1e9a3bc258af51'
authorJames Almer <jamrial@gmail.com>
Sun, 12 Nov 2017 02:41:35 +0000 (23:41 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 12 Nov 2017 02:41:35 +0000 (23:41 -0300)
* commit '0af8a72174108b9bb482f1073a1e9a3bc258af51':
  build: Drop support for legacy TI ARM compiler

Merged-by: James Almer <jamrial@gmail.com>
1  2 
configure
libavutil/intreadwrite.h
libavutil/mem.h

diff --cc configure
Simple merge
Simple merge
diff --cc libavutil/mem.h
index 49d4b1f2db9b50aad3397213dbd6f73071f2375b,0aee0e0d88611779efeb8ea3911b7bd509a10693..e5ca8299dc9871b38dfc40b487f23cd28f049674
   * @{
   */
  
 +/**
 + * @def DECLARE_ALIGNED(n,t,v)
 + * Declare a variable that is aligned in memory.
 + *
 + * @code{.c}
 + * DECLARE_ALIGNED(16, uint16_t, aligned_int) = 42;
 + * DECLARE_ALIGNED(32, uint8_t, aligned_array)[128];
 + *
 + * // The default-alignment equivalent would be
 + * uint16_t aligned_int = 42;
 + * uint8_t aligned_array[128];
 + * @endcode
 + *
 + * @param n Minimum alignment in bytes
 + * @param t Type of the variable (or array element)
 + * @param v Name of the variable
 + */
  
 -#if defined(__ICC) && __ICC < 1200 || defined(__SUNPRO_C)
 +/**
 + * @def DECLARE_ASM_CONST(n,t,v)
 + * Declare a static constant aligned variable appropriate for use in inline
 + * assembly code.
 + *
 + * @code{.c}
 + * DECLARE_ASM_CONST(16, uint64_t, pw_08) = UINT64_C(0x0008000800080008);
 + * @endcode
 + *
 + * @param n Minimum alignment in bytes
 + * @param t Type of the variable (or array element)
 + * @param v Name of the variable
 + */
 +
 +#if defined(__INTEL_COMPILER) && __INTEL_COMPILER < 1110 || defined(__SUNPRO_C)
      #define DECLARE_ALIGNED(n,t,v)      t __attribute__ ((aligned (n))) v
      #define DECLARE_ASM_CONST(n,t,v)    const t __attribute__ ((aligned (n))) v
- #elif defined(__TI_COMPILER_VERSION__)
-     #define DECLARE_ALIGNED(n,t,v)                      \
-         AV_PRAGMA(DATA_ALIGN(v,n))                      \
-         t __attribute__((aligned(n))) v
-     #define DECLARE_ASM_CONST(n,t,v)                    \
-         AV_PRAGMA(DATA_ALIGN(v,n))                      \
-         static const t __attribute__((aligned(n))) v
 +#elif defined(__DJGPP__)
 +    #define DECLARE_ALIGNED(n,t,v)      t __attribute__ ((aligned (FFMIN(n, 16)))) v
 +    #define DECLARE_ASM_CONST(n,t,v)    static const t av_used __attribute__ ((aligned (FFMIN(n, 16)))) v
  #elif defined(__GNUC__) || defined(__clang__)
      #define DECLARE_ALIGNED(n,t,v)      t __attribute__ ((aligned (n))) v
      #define DECLARE_ASM_CONST(n,t,v)    static const t av_used __attribute__ ((aligned (n))) v