@@ -141,6 +141,8 @@ sat_s_add_##T##_fmt_2 (T x, T y) \
return sum; \
return x < 0 ? MIN : MAX; \
}
+#define DEF_SAT_S_ADD_FMT_2_WRAP(T, UT, MIN, MAX) \
+ DEF_SAT_S_ADD_FMT_2(T, UT, MIN, MAX)
#define DEF_SAT_S_ADD_FMT_3(T, UT, MIN, MAX) \
T __attribute__((noinline)) \
@@ -7,10 +7,10 @@
#define T1 int8_t
#define T2 uint8_t
-DEF_SAT_S_ADD_FMT_1_WRAP(T1, T2, INT8_MIN, INT8_MAX)
+DEF_SAT_S_ADD_FMT_2_WRAP(T1, T2, INT8_MIN, INT8_MAX)
#define DATA TEST_BINARY_DATA_WRAP(T1, ssadd)
#define T TEST_BINARY_STRUCT_DECL(T1, ssadd)
-#define RUN_BINARY(x, y) RUN_SAT_S_ADD_FMT_1_WRAP(T1, x, y)
+#define RUN_BINARY(x, y) RUN_SAT_S_ADD_FMT_2_WRAP(T1, x, y)
#include "scalar_sat_binary_run_xxx.h"
@@ -7,10 +7,10 @@
#define T1 int16_t
#define T2 uint16_t
-DEF_SAT_S_ADD_FMT_1_WRAP(T1, T2, INT16_MIN, INT16_MAX)
+DEF_SAT_S_ADD_FMT_2_WRAP(T1, T2, INT16_MIN, INT16_MAX)
#define DATA TEST_BINARY_DATA_WRAP(T1, ssadd)
#define T TEST_BINARY_STRUCT_DECL(T1, ssadd)
-#define RUN_BINARY(x, y) RUN_SAT_S_ADD_FMT_1_WRAP(T1, x, y)
+#define RUN_BINARY(x, y) RUN_SAT_S_ADD_FMT_2_WRAP(T1, x, y)
#include "scalar_sat_binary_run_xxx.h"
@@ -7,10 +7,10 @@
#define T1 int32_t
#define T2 uint32_t
-DEF_SAT_S_ADD_FMT_1_WRAP(T1, T2, INT32_MIN, INT32_MAX)
+DEF_SAT_S_ADD_FMT_2_WRAP(T1, T2, INT32_MIN, INT32_MAX)
#define DATA TEST_BINARY_DATA_WRAP(T1, ssadd)
#define T TEST_BINARY_STRUCT_DECL(T1, ssadd)
-#define RUN_BINARY(x, y) RUN_SAT_S_ADD_FMT_1_WRAP(T1, x, y)
+#define RUN_BINARY(x, y) RUN_SAT_S_ADD_FMT_2_WRAP(T1, x, y)
#include "scalar_sat_binary_run_xxx.h"
@@ -7,10 +7,10 @@
#define T1 int64_t
#define T2 uint64_t
-DEF_SAT_S_ADD_FMT_1_WRAP(T1, T2, INT64_MIN, INT64_MAX)
+DEF_SAT_S_ADD_FMT_2_WRAP(T1, T2, INT64_MIN, INT64_MAX)
#define DATA TEST_BINARY_DATA_WRAP(T1, ssadd)
#define T TEST_BINARY_STRUCT_DECL(T1, ssadd)
-#define RUN_BINARY(x, y) RUN_SAT_S_ADD_FMT_1_WRAP(T1, x, y)
+#define RUN_BINARY(x, y) RUN_SAT_S_ADD_FMT_2_WRAP(T1, x, y)
#include "scalar_sat_binary_run_xxx.h"