Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
c2a456e9
Commit
c2a456e9
authored
11 years ago
by
Richard Linden
Browse files
Options
Downloads
Patches
Plain Diff
BUILDFIX: remove ambiguity of is_approx_equal, use llabs instead of fabs
parent
c03e366a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llui/llstatbar.cpp
+4
-4
4 additions, 4 deletions
indra/llui/llstatbar.cpp
with
4 additions
and
4 deletions
indra/llui/llstatbar.cpp
+
4
−
4
View file @
c2a456e9
...
@@ -80,12 +80,12 @@ void calc_auto_scale_range(F32& min, F32& max, F32& tick)
...
@@ -80,12 +80,12 @@ void calc_auto_scale_range(F32& min, F32& max, F32& tick)
const
F32
RANGES
[]
=
{
0.
f
,
1.
f
,
1.5
f
,
2.
f
,
3.
f
,
5.
f
,
10.
f
};
const
F32
RANGES
[]
=
{
0.
f
,
1.
f
,
1.5
f
,
2.
f
,
3.
f
,
5.
f
,
10.
f
};
const
F32
TICKS
[]
=
{
0.
f
,
0.25
f
,
0.5
f
,
1.
f
,
1.
f
,
1.
f
,
2.
f
};
const
F32
TICKS
[]
=
{
0.
f
,
0.25
f
,
0.5
f
,
1.
f
,
1.
f
,
1.
f
,
2.
f
};
const
S32
num_digits_max
=
is_approx_equal
(
f
abs
(
max
),
0.
f
)
const
S32
num_digits_max
=
is_approx_equal
(
ll
abs
(
max
),
0.
f
)
?
S32_MIN
+
1
?
S32_MIN
+
1
:
llceil
(
logf
(
f
abs
(
max
))
*
OO_LN10
);
:
llceil
(
logf
(
ll
abs
(
max
))
*
OO_LN10
);
const
S32
num_digits_min
=
is_approx_equal
(
f
abs
(
min
),
0.
f
)
const
S32
num_digits_min
=
is_approx_equal
(
ll
abs
(
min
),
0.
f
)
?
S32_MIN
+
1
?
S32_MIN
+
1
:
llceil
(
logf
(
f
abs
(
min
))
*
OO_LN10
);
:
llceil
(
logf
(
ll
abs
(
min
))
*
OO_LN10
);
const
S32
num_digits
=
llmax
(
num_digits_max
,
num_digits_min
);
const
S32
num_digits
=
llmax
(
num_digits_max
,
num_digits_min
);
const
F32
power_of_10
=
pow
(
10.0
,
num_digits
-
1
);
const
F32
power_of_10
=
pow
(
10.0
,
num_digits
-
1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment