Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
b2f0b6e4
Commit
b2f0b6e4
authored
Sep 07, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak comment
parent
3d9f3c16
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/fmt/format-inl.h
include/fmt/format-inl.h
+2
-2
No files found.
include/fmt/format-inl.h
View file @
b2f0b6e4
...
...
@@ -451,8 +451,8 @@ FMT_FUNC fp operator*(fp x, fp y) {
#endif
}
// Returns
cached power (of 10) c_k = c_k.f * pow(2, c_k.e)
such that its
// (binary) exponent satisfies
min_exponent <= c_k.e <= min_exponent + 28
.
// Returns
a cached power of 10 `c_k = c_k.f * pow(2, c_k.e)`
such that its
// (binary) exponent satisfies
`min_exponent <= c_k.e <= min_exponent + 28`
.
FMT_FUNC
fp
get_cached_power
(
int
min_exponent
,
int
&
pow10_exponent
)
{
const
double
one_over_log2_10
=
0.30102999566398114
;
// 1 / log2(10)
int
index
=
static_cast
<
int
>
(
...
...
Write
Preview
Markdown
is supported
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