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
6cd66610
Commit
6cd66610
authored
Apr 30, 2018
by
Daniela Engert
Committed by
Victor Zverovich
May 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove trailing spaces.
Signed-off-by:
Daniela Engert
<
dani@ngrt.de
>
parent
fe19c266
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
include/fmt/core.h
include/fmt/core.h
+1
-1
include/fmt/format-inl.h
include/fmt/format-inl.h
+1
-1
include/fmt/format.h
include/fmt/format.h
+2
-2
No files found.
include/fmt/core.h
View file @
6cd66610
...
...
@@ -158,7 +158,7 @@
// libc++ supports string_view in pre-c++17.
#if (FMT_HAS_INCLUDE(<string_view>) && \
(__cplusplus > 201402L || _LIBCPP_VERSION)) || \
(defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910)
(defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910)
# include <string_view>
# define FMT_USE_STD_STRING_VIEW
#elif (FMT_HAS_INCLUDE(<experimental/string_view>) && \
...
...
include/fmt/format-inl.h
View file @
6cd66610
...
...
@@ -337,7 +337,7 @@ FMT_FUNC fp operator*(fp x, fp y) {
uint64_t
ac
=
a
*
c
,
bc
=
b
*
c
,
ad
=
a
*
d
,
bd
=
b
*
d
;
// Compute mid 64-bit of result and round.
uint64_t
mid
=
(
bd
>>
32
)
+
(
ad
&
mask
)
+
(
bc
&
mask
)
+
(
1U
<<
31
);
return
fp
(
ac
+
(
ad
>>
32
)
+
(
bc
>>
32
)
+
(
mid
>>
32
),
x
.
e
+
y
.
e
+
64
);
return
fp
(
ac
+
(
ad
>>
32
)
+
(
bc
>>
32
)
+
(
mid
>>
32
),
x
.
e
+
y
.
e
+
64
);
}
}
// namespace internal
...
...
include/fmt/format.h
View file @
6cd66610
...
...
@@ -255,7 +255,7 @@ struct fp {
// Returns an fp number representing x - y. Result may not be normalized.
inline
fp
operator
-
(
fp
x
,
fp
y
)
{
FMT_ASSERT
(
x
.
f
>=
y
.
f
&&
x
.
e
==
y
.
e
,
"invalid operands"
);
return
fp
(
x
.
f
-
y
.
f
,
x
.
e
);
return
fp
(
x
.
f
-
y
.
f
,
x
.
e
);
}
// Computes an fp number r with r.f = x.f * y.f / pow(2, 32) rounded to nearest
...
...
@@ -1594,7 +1594,7 @@ class width_checker: public function<unsigned long long> {
explicit
FMT_CONSTEXPR
width_checker
(
ErrorHandler
&
eh
)
:
handler_
(
eh
)
{}
template
<
typename
T
>
FMT_CONSTEXPR
FMT_CONSTEXPR
typename
std
::
enable_if
<
is_integer
<
T
>::
value
,
unsigned
long
long
>::
type
operator
()(
T
value
)
{
if
(
is_negative
(
value
))
...
...
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