[1/2] x86/asm: add ymm_reg struct

Message ID 1453612244-2156-1-git-send-email-jamrial@gmail.com
State New
Headers show

Commit Message

James Almer Jan. 24, 2016, 5:10 a.m.
Needed to declare 32-byte long constants

Signed-off-by: James Almer <jamrial@gmail.com>
---
Pre-requisite for James Darnley's v210 avx2 patches.

 libavutil/x86/asm.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Luca Barbato Jan. 24, 2016, 5:16 a.m. | #1
On 24/01/16 06:10, James Almer wrote:
> Needed to declare 32-byte long constants
> 
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
> Pre-requisite for James Darnley's v210 avx2 patches.
> 
>  libavutil/x86/asm.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavutil/x86/asm.h b/libavutil/x86/asm.h
> index e30f5db..db5f3d5 100644
> --- a/libavutil/x86/asm.h
> +++ b/libavutil/x86/asm.h
> @@ -25,6 +25,7 @@
>  #include "config.h"
>  
>  typedef struct xmm_reg { uint64_t a, b; } xmm_reg;
> +typedef struct ymm_reg { uint64_t a, b, c, d; } ymm_reg;
>  
>  #if ARCH_X86_64
>  #    define OPSIZE "q"
> 

Thank you, I simply used local constants for now.

Patch

diff --git a/libavutil/x86/asm.h b/libavutil/x86/asm.h
index e30f5db..db5f3d5 100644
--- a/libavutil/x86/asm.h
+++ b/libavutil/x86/asm.h
@@ -25,6 +25,7 @@ 
 #include "config.h"
 
 typedef struct xmm_reg { uint64_t a, b; } xmm_reg;
+typedef struct ymm_reg { uint64_t a, b, c, d; } ymm_reg;
 
 #if ARCH_X86_64
 #    define OPSIZE "q"