mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-20 12:14:46 +03:00
SIMD. Gather all SSE and AVX imports in ImPlatform.h
This commit is contained in:
parent
e4ca18a9c8
commit
f9c5589cac
|
@ -10,13 +10,6 @@
|
|||
|
||||
#include "Imaging.h"
|
||||
|
||||
#include <emmintrin.h>
|
||||
#include <mmintrin.h>
|
||||
#include <smmintrin.h>
|
||||
#if defined(__AVX2__)
|
||||
#include <immintrin.h>
|
||||
#endif
|
||||
|
||||
|
||||
#define PRECISION_BITS 7
|
||||
|
||||
|
|
|
@ -17,15 +17,6 @@
|
|||
|
||||
#include "Imaging.h"
|
||||
|
||||
#include <emmintrin.h>
|
||||
#include <mmintrin.h>
|
||||
#include <smmintrin.h>
|
||||
|
||||
#if defined(__AVX2__)
|
||||
#include <immintrin.h>
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Imaging
|
||||
ImagingGetBand(Imaging imIn, int band) {
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
#include "Imaging.h"
|
||||
#include <emmintrin.h>
|
||||
#include <mmintrin.h>
|
||||
#include <smmintrin.h>
|
||||
|
||||
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
|
||||
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
|
||||
|
|
|
@ -33,13 +33,6 @@
|
|||
*/
|
||||
|
||||
#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)
|
||||
|
|
|
@ -26,12 +26,6 @@
|
|||
|
||||
#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).
|
||||
8 is number of bits in result.
|
||||
|
|
|
@ -9,6 +9,13 @@
|
|||
|
||||
#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 */
|
||||
#ifndef HAVE_PROTOTYPES
|
||||
#error Sorry, this library requires support for ANSI prototypes.
|
||||
|
|
|
@ -1,14 +1,6 @@
|
|||
#include "Imaging.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <emmintrin.h>
|
||||
#include <mmintrin.h>
|
||||
#include <smmintrin.h>
|
||||
|
||||
#if defined(__AVX2__)
|
||||
#include <immintrin.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include "ResampleSIMDHorizontalConv.c"
|
||||
#include "ResampleSIMDVerticalConv.c"
|
||||
|
|
Loading…
Reference in New Issue
Block a user