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
111fc127
Commit
111fc127
authored
Nov 24, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove fp::operator-
parent
6003ec3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
12 deletions
+0
-12
include/fmt/format-inl.h
include/fmt/format-inl.h
+0
-6
test/format-impl-test.cc
test/format-impl-test.cc
+0
-6
No files found.
include/fmt/format-inl.h
View file @
111fc127
...
...
@@ -452,12 +452,6 @@ class fp {
inline
bool
operator
==
(
fp
x
,
fp
y
)
{
return
x
.
f
==
y
.
f
&&
x
.
e
==
y
.
e
;
}
// 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
{
x
.
f
-
y
.
f
,
x
.
e
};
}
inline
uint64_t
multiply
(
uint64_t
lhs
,
uint64_t
rhs
)
{
#if FMT_USE_INT128
auto
product
=
static_cast
<
__uint128_t
>
(
lhs
)
*
rhs
;
...
...
test/format-impl-test.cc
View file @
111fc127
...
...
@@ -250,12 +250,6 @@ TEST(FPTest, ComputeFloatBoundaries) {
}
}
TEST
(
FPTest
,
Subtract
)
{
auto
v
=
fp
(
123
,
1
)
-
fp
(
102
,
1
);
EXPECT_EQ
(
v
.
f
,
21u
);
EXPECT_EQ
(
v
.
e
,
1
);
}
TEST
(
FPTest
,
Multiply
)
{
auto
v
=
fp
(
123ULL
<<
32
,
4
)
*
fp
(
56ULL
<<
32
,
7
);
EXPECT_EQ
(
v
.
f
,
123u
*
56u
);
...
...
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