提交 10c340c9 编写于 作者: T tensor-tang

fix confilcts

上级 893957f7
...@@ -21,26 +21,27 @@ namespace operators { ...@@ -21,26 +21,27 @@ namespace operators {
namespace jit { namespace jit {
namespace gen { namespace gen {
const float exp_float_consts[] ALIGN32 = {REPEAT_8TIMES(1.f), const float ALIGN32_BEG exp_float_consts[] ALIGN32_END = {
REPEAT_8TIMES(2.f), REPEAT_8TIMES(1.f),
REPEAT_8TIMES(0.5f), REPEAT_8TIMES(2.f),
REPEAT_8TIMES(EXP_HIG), REPEAT_8TIMES(0.5f),
REPEAT_8TIMES(EXP_LOW), REPEAT_8TIMES(EXP_HIG),
REPEAT_8TIMES(CEPHES_LOG2EF), REPEAT_8TIMES(EXP_LOW),
REPEAT_8TIMES(CEPHES_EXP_C1), REPEAT_8TIMES(CEPHES_LOG2EF),
REPEAT_8TIMES(CEPHES_EXP_C2), REPEAT_8TIMES(CEPHES_EXP_C1),
REPEAT_8TIMES(CEPHES_EXP_P0), REPEAT_8TIMES(CEPHES_EXP_C2),
REPEAT_8TIMES(CEPHES_EXP_P1), REPEAT_8TIMES(CEPHES_EXP_P0),
REPEAT_8TIMES(CEPHES_EXP_P2), REPEAT_8TIMES(CEPHES_EXP_P1),
REPEAT_8TIMES(CEPHES_EXP_P3), REPEAT_8TIMES(CEPHES_EXP_P2),
REPEAT_8TIMES(CEPHES_EXP_P4), REPEAT_8TIMES(CEPHES_EXP_P3),
REPEAT_8TIMES(CEPHES_EXP_P5), REPEAT_8TIMES(CEPHES_EXP_P4),
REPEAT_8TIMES(EXP_MAX_INPUT), REPEAT_8TIMES(CEPHES_EXP_P5),
REPEAT_8TIMES(SIGMOID_THRESHOLD_MAX), REPEAT_8TIMES(EXP_MAX_INPUT),
REPEAT_8TIMES(SIGMOID_THRESHOLD_MIN)}; REPEAT_8TIMES(SIGMOID_THRESHOLD_MAX),
REPEAT_8TIMES(SIGMOID_THRESHOLD_MIN)};
const int exp_int_0x7f[] ALIGN32 = {REPEAT_8TIMES(0x7f)};
int g_tmp_mem[16] ALIGN32 = {0}; const int ALIGN32_BEG exp_int_0x7f[] ALIGN32_END = {REPEAT_8TIMES(0x7f)};
int ALIGN32_BEG g_tmp_mem[16] ALIGN32_END = {0};
void VActJitCode::genCode() { void VActJitCode::genCode() {
int offset = 0; int offset = 0;
......
...@@ -27,7 +27,6 @@ extern const float exp_float_consts[]; ...@@ -27,7 +27,6 @@ extern const float exp_float_consts[];
extern const int exp_int_0x7f[]; extern const int exp_int_0x7f[];
extern int g_tmp_mem[]; extern int g_tmp_mem[];
#define ALIGN32 __attribute__((aligned(32)))
#define EXP_HIG 88.3762626647949f #define EXP_HIG 88.3762626647949f
#define EXP_LOW -88.3762626647949f #define EXP_LOW -88.3762626647949f
#define CEPHES_LOG2EF 1.44269504088896341 #define CEPHES_LOG2EF 1.44269504088896341
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册