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
6f3536f9
Unverified
Commit
6f3536f9
authored
Sep 29, 2020
by
jk-jeon
Committed by
GitHub
Sep 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move zero-check to an earlier branch (#1906)
parent
90ef46df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
include/fmt/format-inl.h
include/fmt/format-inl.h
+3
-4
No files found.
include/fmt/format-inl.h
View file @
6f3536f9
...
...
@@ -2258,6 +2258,9 @@ FMT_SAFEBUFFERS decimal_fp<T> to_decimal(T x) FMT_NOEXCEPT {
(
static_cast
<
carrier_uint
>
(
1
)
<<
float_info
<
T
>::
significand_bits
);
}
else
{
// Subnormal case; the interval is always regular.
if
(
significand
==
0
)
{
return
decimal_fp
<
T
>
{
0
,
0
};
}
exponent
=
float_info
<
T
>::
min_exponent
-
float_info
<
T
>::
significand_bits
;
}
...
...
@@ -2307,10 +2310,6 @@ FMT_SAFEBUFFERS decimal_fp<T> to_decimal(T x) FMT_NOEXCEPT {
goto
small_divisor_case_label
;
}
}
if
(
ret_value
.
significand
==
0
)
{
ret_value
.
exponent
=
0
;
return
ret_value
;
}
ret_value
.
exponent
=
minus_k
+
float_info
<
T
>::
kappa
+
1
;
// We may need to remove trailing zeros
...
...
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