mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix arch detection for fast_matrix_mul
Needed for iOS Simulator build
This commit is contained in:
1 parent
46fdc0f5f5
commit
5db12ca54d
3 files changed
+8
-12
No files matched your search
+2
-9
@@ -714,15 +714,6 @@ endif()
|
||||
|
||||
set(nativeExtra)
|
||||
set(nativeExtraLibs)
|
||||
if(ARMV7)
|
||||
set(nativeExtra ${nativeExtra}
|
||||
ext/native/math/fast/fast_matrix_neon.S)
|
||||
endif()
|
||||
if((X86 OR X86_64) AND NOT MIPS)
|
||||
set(nativeExtra ${nativeExtra}
|
||||
ext/native/math/fast/fast_matrix_sse.c)
|
||||
endif()
|
||||
|
||||
|
||||
if(ANDROID)
|
||||
set(nativeExtra ${nativeExtra}
|
||||
@@ -956,6 +947,8 @@ add_library(native STATIC
|
||||
ext/native/input/input_state.cpp
|
||||
ext/native/math/fast/fast_math.c
|
||||
ext/native/math/fast/fast_matrix.c
|
||||
ext/native/math/fast/fast_matrix_neon.S
|
||||
ext/native/math/fast/fast_matrix_sse.c
|
||||
ext/native/math/curves.cpp
|
||||
ext/native/math/curves.h
|
||||
ext/native/math/expression_parser.cpp
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "ppsspp_config.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -13,7 +15,8 @@ extern void fast_matrix_mul_4x4_c(float *dest, const float *a, const float *b);
|
||||
extern void fast_matrix_mul_4x4_neon(float *dest, const float *a, const float *b);
|
||||
extern void fast_matrix_mul_4x4_sse(float *dest, const float *a, const float *b);
|
||||
|
||||
#if defined(_M_IX86) || defined(_M_X64) // Hard link to SSE implementations on x86
|
||||
#if PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64)
|
||||
// Hard link to SSE implementations on x86/amd64
|
||||
#define fast_matrix_mul_4x4 fast_matrix_mul_4x4_sse
|
||||
#else
|
||||
extern fptr_fast_matrix_mul_4x4 fast_matrix_mul_4x4;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "base/arch.h"
|
||||
#include "ppsspp_config.h"
|
||||
|
||||
#if defined(_M_IX86) || defined(_M_X64)
|
||||
#if PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64)
|
||||
|
||||
#include <emmintrin.h>
|
||||
|
||||
|
||||
Reference in new issue
Block a user