Commit 8b7738c3 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: workaround for MSYS2 gcc 12.1.0 internal compiler error in libdivide

parent 5e15cb47
......@@ -1352,7 +1352,7 @@ int16_t libdivide_s16_branchfree_recover(const struct libdivide_s16_branchfree_t
/////////// SINT32
static LIBDIVIDE_INLINE struct libdivide_s32_t libdivide_internal_s32_gen(
static struct libdivide_s32_t libdivide_internal_s32_gen(
int32_t d, int branchfree) {
if (d == 0) {
LIBDIVIDE_ERROR("divider must be != 0");
......@@ -1418,11 +1418,11 @@ static LIBDIVIDE_INLINE struct libdivide_s32_t libdivide_internal_s32_gen(
return result;
}
struct libdivide_s32_t libdivide_s32_gen(int32_t d) {
LIBDIVIDE_INLINE struct libdivide_s32_t libdivide_s32_gen(int32_t d) {
return libdivide_internal_s32_gen(d, 0);
}
struct libdivide_s32_branchfree_t libdivide_s32_branchfree_gen(int32_t d) {
LIBDIVIDE_INLINE struct libdivide_s32_branchfree_t libdivide_s32_branchfree_gen(int32_t d) {
struct libdivide_s32_t tmp = libdivide_internal_s32_gen(d, 1);
struct libdivide_s32_branchfree_t result = {tmp.magic, tmp.more};
return result;
......@@ -1521,7 +1521,7 @@ int32_t libdivide_s32_branchfree_recover(const struct libdivide_s32_branchfree_t
///////////// SINT64
static LIBDIVIDE_INLINE struct libdivide_s64_t libdivide_internal_s64_gen(
static struct libdivide_s64_t libdivide_internal_s64_gen(
int64_t d, int branchfree) {
if (d == 0) {
LIBDIVIDE_ERROR("divider must be != 0");
......@@ -1587,11 +1587,11 @@ static LIBDIVIDE_INLINE struct libdivide_s64_t libdivide_internal_s64_gen(
return result;
}
struct libdivide_s64_t libdivide_s64_gen(int64_t d) {
LIBDIVIDE_INLINE struct libdivide_s64_t libdivide_s64_gen(int64_t d) {
return libdivide_internal_s64_gen(d, 0);
}
struct libdivide_s64_branchfree_t libdivide_s64_branchfree_gen(int64_t d) {
LIBDIVIDE_INLINE struct libdivide_s64_branchfree_t libdivide_s64_branchfree_gen(int64_t d) {
struct libdivide_s64_t tmp = libdivide_internal_s64_gen(d, 1);
struct libdivide_s64_branchfree_t ret = {tmp.magic, tmp.more};
return ret;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment