include string.h in all colorspacehandler implementations

This commit is contained in:
Jan Alexander Steffens (heftig) 2017-07-31 01:10:19 +02:00
parent 368d785301
commit 315320e0c1
No known key found for this signature in database
GPG Key ID: A5E9288C4FA415FA
3 changed files with 4 additions and 2 deletions

View File

@ -21,6 +21,7 @@
#error This code requires AVX2 support. #error This code requires AVX2 support.
#else #else
#include <string.h>
#include <immintrin.h> #include <immintrin.h>
template <bool SWAP_RB> template <bool SWAP_RB>

View File

@ -21,6 +21,8 @@
#error This code requires PowerPC AltiVec support. #error This code requires PowerPC AltiVec support.
#else #else
#include <string.h>
template <bool SWAP_RB> template <bool SWAP_RB>
FORCEINLINE void ColorspaceConvert555To8888_AltiVec(const v128u16 &srcColor, const v128u32 &srcAlphaBits32Lo, const v128u32 &srcAlphaBits32Hi, v128u32 &dstLo, v128u32 &dstHi) FORCEINLINE void ColorspaceConvert555To8888_AltiVec(const v128u16 &srcColor, const v128u32 &srcAlphaBits32Lo, const v128u32 &srcAlphaBits32Hi, v128u32 &dstLo, v128u32 &dstHi)
{ {

View File

@ -17,12 +17,11 @@
#include "colorspacehandler_SSE2.h" #include "colorspacehandler_SSE2.h"
#include <string.h>
#ifndef ENABLE_SSE2 #ifndef ENABLE_SSE2
#error This code requires SSE2 support. #error This code requires SSE2 support.
#else #else
#include <string.h>
#include <emmintrin.h> #include <emmintrin.h>
#ifdef ENABLE_SSSE3 #ifdef ENABLE_SSSE3