Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
6350e5f6
Commit
6350e5f6
authored
May 21, 2018
by
Jacob Kegerreis
Browse files
Remove silly float casting
parent
2c294f80
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/utilities.h
View file @
6350e5f6
...
...
@@ -37,7 +37,7 @@ INLINE static int find_value_in_monotonic_array(
// Until array[index_low] < x < array[index_high=index_low+1]
while
(
index_high
-
index_low
>
1
)
{
index_mid
=
(
index_high
+
index_low
)
/
2
.
f
;
// Middle index
index_mid
=
(
index_high
+
index_low
)
/
2
;
// Middle index
// Replace the low or high index with the middle
if
(
array
[
index_mid
]
<=
x
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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