SIMD. Gather all SSE and AVX imports in ImPlatform.h

This commit is contained in:
Alexander 2020-01-15 16:46:47 +03:00 committed by Alexander Karpinsky
parent e4ca18a9c8
commit f9c5589cac
7 changed files with 7 additions and 40 deletions

View File

@ -10,13 +10,6 @@
#include "Imaging.h" #include "Imaging.h"
#include <emmintrin.h>
#include <mmintrin.h>
#include <smmintrin.h>
#if defined(__AVX2__)
#include <immintrin.h>
#endif
#define PRECISION_BITS 7 #define PRECISION_BITS 7

View File

@ -17,15 +17,6 @@
#include "Imaging.h" #include "Imaging.h"
#include <emmintrin.h>
#include <mmintrin.h>
#include <smmintrin.h>
#if defined(__AVX2__)
#include <immintrin.h>
#endif
Imaging Imaging
ImagingGetBand(Imaging imIn, int band) { ImagingGetBand(Imaging imIn, int band) {

View File

@ -1,7 +1,4 @@
#include "Imaging.h" #include "Imaging.h"
#include <emmintrin.h>
#include <mmintrin.h>
#include <smmintrin.h>
#define MAX(x, y) (((x) > (y)) ? (x) : (y)) #define MAX(x, y) (((x) > (y)) ? (x) : (y))
#define MIN(x, y) (((x) < (y)) ? (x) : (y)) #define MIN(x, y) (((x) < (y)) ? (x) : (y))

View File

@ -33,13 +33,6 @@
*/ */
#include "Imaging.h" #include "Imaging.h"
#include <emmintrin.h>
#include <mmintrin.h>
#include <smmintrin.h>
#if defined(__AVX2__)
#include <immintrin.h>
#endif
#define MAX(a, b) (a)>(b) ? (a) : (b) #define MAX(a, b) (a)>(b) ? (a) : (b)

View File

@ -26,12 +26,6 @@
#include "Imaging.h" #include "Imaging.h"
#include <emmintrin.h>
#include <mmintrin.h>
#include <smmintrin.h>
#if defined(__AVX2__)
#include <immintrin.h>
#endif
/* 5 is number of bits enought to account all kernel coefficients (1<<5 > 25). /* 5 is number of bits enought to account all kernel coefficients (1<<5 > 25).
8 is number of bits in result. 8 is number of bits in result.

View File

@ -9,6 +9,13 @@
#include "Python.h" #include "Python.h"
#include <emmintrin.h>
#include <mmintrin.h>
#include <smmintrin.h>
#if defined(__AVX2__)
#include <immintrin.h>
#endif
/* Check that we have an ANSI compliant compiler */ /* Check that we have an ANSI compliant compiler */
#ifndef HAVE_PROTOTYPES #ifndef HAVE_PROTOTYPES
#error Sorry, this library requires support for ANSI prototypes. #error Sorry, this library requires support for ANSI prototypes.

View File

@ -1,14 +1,6 @@
#include "Imaging.h" #include "Imaging.h"
#include <math.h> #include <math.h>
#include <emmintrin.h>
#include <mmintrin.h>
#include <smmintrin.h>
#if defined(__AVX2__)
#include <immintrin.h>
#endif
#include "ResampleSIMDHorizontalConv.c" #include "ResampleSIMDHorizontalConv.c"
#include "ResampleSIMDVerticalConv.c" #include "ResampleSIMDVerticalConv.c"