remove arch specific code

This commit is contained in:
loki
2021-06-15 18:31:40 +02:00
parent 56bb4ca865
commit 71cef4b700
23 changed files with 57 additions and 1247 deletions

View File

@@ -22,6 +22,8 @@
#ifndef AVCODEC_MATHOPS_H
#define AVCODEC_MATHOPS_H
#include "config.h"
#include <stdint.h>
#include <libavutil/common.h>
@@ -35,20 +37,6 @@ extern const uint8_t ff_crop_tab[256 + 2 * MAX_NEG_CROP];
extern const uint8_t ff_zigzag_direct[64];
extern const uint8_t ff_zigzag_scan[16 + 1];
#if ARCH_ARM
#include "arm/mathops.h"
#elif ARCH_AVR32
#include "avr32/mathops.h"
#elif ARCH_MIPS
#include "mips/mathops.h"
#elif ARCH_PPC
#include "ppc/mathops.h"
#elif ARCH_X86
#include "x86/mathops.h"
#endif
/* generic implementation */
#ifndef MUL64
#define MUL64(a, b) ((int64_t)(a) * (int64_t)(b))
#endif