Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Richard Gobeille
EDuke32
Commits
8b7738c3
Commit
8b7738c3
authored
May 26, 2022
by
Richard Gobeille
Browse files
engine: workaround for MSYS2 gcc 12.1.0 internal compiler error in libdivide
parent
5e15cb47
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/build/include/libdivide.h
View file @
8b7738c3
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment