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
1a291fad
Commit
1a291fad
authored
Mar 05, 2022
by
Richard Gobeille
Browse files
engine: these uses of EDUKE32_PREDICT_FALSE probably aren't helpful
parent
f04a373d
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/build/src/engine.cpp
View file @
1a291fad
...
...
@@ -2062,7 +2062,7 @@ static void maskwallscan(int32_t x1, int32_t x2, int32_t saturatevplc)
tweak_tsizes
(
&
tsiz
);
if
(
EDUKE32_PREDICT_FALSE
(
palookup
[
globalpal
]
==
NULL
))
if
(
/*
EDUKE32_PREDICT_FALSE
*/
(
palookup
[
globalpal
]
==
NULL
))
globalpal
=
0
;
intptr_t
const
fpalookup
=
FP_OFF
(
palookup
[
globalpal
]);
...
...
@@ -5531,7 +5531,7 @@ draw_as_face_sprite:
vec2_16_t
const
span
=
tilesiz
[
tilenum
];
vec2_t
const
siz
=
{
mulscale30
(
isiz
,
xv
*
span
.
x
),
mulscale14
(
isiz
,
tspr
->
yrepeat
*
span
.
y
)
};
if
(
EDUKE32_PREDICT_FALSE
((
span
.
x
>>
11
)
>=
siz
.
x
||
span
.
y
>=
(
siz
.
y
>>
1
)))
if
(
/*
EDUKE32_PREDICT_FALSE
*/
((
span
.
x
>>
11
)
>=
siz
.
x
||
span
.
y
>=
(
siz
.
y
>>
1
)))
return
;
//Watch out for divscale overflow
vec2_t
upscale
=
{};
...
...
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