diff options
author | Martin Storsjö <martin@martin.st> | 2023-10-13 11:56:30 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2023-10-24 14:46:20 +0300 |
commit | a4877f1ec11e0327684eda37b15bc1ccb16f9ace (patch) | |
tree | 2f6e07e342a85fdd58e38caae64eef8853eb2e08 /libavutil/aarch64 | |
parent | 0679e853315b3cef81fe0120c37e6cc7c9ffba91 (diff) | |
download | ffmpeg-a4877f1ec11e0327684eda37b15bc1ccb16f9ace.tar.gz |
aarch64: Only enable extensions in the intended files/regions
This eases actual development of the assembly functions, by only
allowing extension instructions within the sections that explicitly
enable them, instead of having all extensions enabled everywhere.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/aarch64')
-rw-r--r-- | libavutil/aarch64/asm.S | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/libavutil/aarch64/asm.S b/libavutil/aarch64/asm.S index 8589cf74fc..1840f9fb01 100644 --- a/libavutil/aarch64/asm.S +++ b/libavutil/aarch64/asm.S @@ -41,12 +41,24 @@ #endif #if HAVE_AS_ARCHEXT_DOTPROD_DIRECTIVE - .arch_extension dotprod +#define ENABLE_DOTPROD .arch_extension dotprod +#define DISABLE_DOTPROD .arch_extension nodotprod +#else +#define ENABLE_DOTPROD +#define DISABLE_DOTPROD #endif + #if HAVE_AS_ARCHEXT_I8MM_DIRECTIVE - .arch_extension i8mm +#define ENABLE_I8MM .arch_extension i8mm +#define DISABLE_I8MM .arch_extension noi8mm +#else +#define ENABLE_I8MM +#define DISABLE_I8MM #endif +DISABLE_DOTPROD +DISABLE_I8MM + /* Support macros for * - Armv8.3-A Pointer Authentication and |