Little change in C code, remove isa specific code in std header
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
#include "gl.h"
|
||||
// #include "wgl.h"
|
||||
#define GLFWAPI INTERNAL
|
||||
// #define GLFWAPI INTERNAL
|
||||
#include "glfw\glfw3.h"
|
||||
#include <immintrin.h>
|
||||
#include <assert.h>
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
#include "sn_intrinsic.std.h"
|
||||
|
||||
#ifndef SN_X86_TARGET_ATTR_sse
|
||||
#define SN_X86_TARGET_ATTR_sse SN_CLANG_TARGET_ATTR("sse42")
|
||||
#define SN_STD_TARGET_ATTR_IMPL(T_arch, T_feature) SN_X86_TARGET_ATTR_##T_arch##T_feature
|
||||
#define SN_X86_TARGET_ATTR_sse SN_CLANG_TARGET_ATTR("sse4.2")
|
||||
#define SN_X86_TARGET_ATTR_avx SN_CLANG_TARGET_ATTR("avx")
|
||||
#define SN_X86_TARGET_ATTR_avx_fma SN_CLANG_TARGET_ATTR("avx,avx2,fma")
|
||||
#define SN_X86_TARGET_ATTR_512 SN_CLANG_TARGET_ATTR("avx512f,avx512vl")
|
||||
|
||||
@@ -138,17 +138,6 @@ extern __declspec(align(64)) sn_zero_kernel_u64 SN_ZERO_KERNEL;
|
||||
int col_length, int row_length, \
|
||||
int col_index, int row_index)
|
||||
|
||||
/* Declarations for AVX float variant
|
||||
DECLARE_BUILD_PANEL(avx, float);
|
||||
DECLARE_BUILD_PANEL(512, float);
|
||||
|
||||
DECLARE_STORE_PANEL(avx, float);
|
||||
DECLARE_STORE_PANEL(512, float);
|
||||
DECLARE_STORE_PANEL(512, float);
|
||||
|
||||
DECLARE_BUILD_PANEL(512, double);
|
||||
|
||||
DECLARE_STORE_PANEL(512, double);
|
||||
/**/
|
||||
|
||||
#endif /* SN_MATKERNEL */
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#ifndef SN_INTRINSIC_CallCONV_STD
|
||||
#define SN_INTRINSIC_CallCONV_STD
|
||||
#ifndef SN_INTRINSIC_CALLCONV_STD
|
||||
#define SN_INTRINSIC_CALLCONV_STD
|
||||
|
||||
#include "sn_internal.h"
|
||||
#include "sn_target.h"
|
||||
#include "sn_intrinsic.h"
|
||||
|
||||
#ifndef static_assert
|
||||
@@ -10,7 +9,6 @@
|
||||
#endif
|
||||
|
||||
#define SN_STD_TARGET_ATTR(T_arch, T_feature) SN_STD_TARGET_ATTR_IMPL(T_arch, T_feature)
|
||||
#define SN_STD_TARGET_ATTR_IMPL(T_arch, T_feature) SN_X86_TARGET_ATTR_##T_arch##T_feature
|
||||
|
||||
#define MK_PROC_NAME_STD(T_type, T_arch, T_feature, T_op) \
|
||||
T_type##_multi_kernel_proc_##T_op##_##T_arch##_##T_feature
|
||||
|
||||
Reference in New Issue
Block a user