CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/Common/Math/fast/fast_matrix.h
Views: 1401
1
#pragma once
2
3
#include "ppsspp_config.h"
4
5
#ifdef __cplusplus
6
extern "C" {
7
#endif
8
9
// A mini library of 4x4 matrix muls.
10
11
extern void fast_matrix_mul_4x4_c(float *dest, const float *a, const float *b);
12
extern void fast_matrix_mul_4x4_neon(float *dest, const float *a, const float *b);
13
extern void fast_matrix_mul_4x4_sse(float *dest, const float *a, const float *b);
14
15
#if PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64)
16
// Hard link to SSE implementations on x86/amd64
17
#define fast_matrix_mul_4x4 fast_matrix_mul_4x4_sse
18
#elif PPSSPP_ARCH(ARM_NEON)
19
#define fast_matrix_mul_4x4 fast_matrix_mul_4x4_neon
20
#else
21
#define fast_matrix_mul_4x4 fast_matrix_mul_4x4_c
22
#endif
23
24
#ifdef __cplusplus
25
} // extern "C"
26
#endif
27
28