You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#define_mi_memcpy_inline(x, y, s) __builtin_memcpy_inline(x, y, s)
173
+
#elif defined(__GNUC__) && (__GNUC__ >= 11)
174
+
#define_mi_memcpy_inline(x, y, s) do { _Static_assert(__builtin_choose_expr(__builtin_constant_p(s), 1, 0), "`_mi_memcpy_inline` must be a constant integer"); memcpy(x, y, s); } while (0)
175
+
#else
176
+
#define_mi_memcpy_inline(x, y, s) memcpy(x, y, s)
177
+
#endif
178
+
179
+
#if __has_builtin(__builtin_memset_inline)
180
+
#define_mi_memset_inline(x, y, s) __builtin_memset_inline(x, y, s)
181
+
#elif defined(__GNUC__) && (__GNUC__ >= 11)
182
+
#define_mi_memset_inline(x, y, s) do { _Static_assert(__builtin_choose_expr(__builtin_constant_p(s), 1, 0), "`_mi_memset_inline` must be a constant integer"); memset(x, y, s); } while (0)
0 commit comments