Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
e3926527
Commit
e3926527
authored
9 years ago
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation
parent
d1e6eae2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
rapidjsontest.cpp
test/perftest/rapidjsontest.cpp
+8
-0
readertest.cpp
test/unittest/readertest.cpp
+1
-1
No files found.
test/perftest/rapidjsontest.cpp
View file @
e3926527
...
...
@@ -24,6 +24,14 @@
#include "rapidjson/encodedstream.h"
#include "rapidjson/memorystream.h"
#ifdef RAPIDJSON_SSE2
#define SIMD_SUFFIX(name) name##_SSE2
#elif defined(RAPIDJSON_SSE42)
#define SIMD_SUFFIX(name) name##_SSE42
#else
#define SIMD_SUFFIX(name) name
#endif
using
namespace
rapidjson
;
class
RapidJson
:
public
PerfTest
{
...
...
This diff is collapsed.
Click to expand it.
test/unittest/readertest.cpp
View file @
e3926527
...
...
@@ -417,7 +417,7 @@ TEST(Reader, ParseNumber_NormalPrecisionError) {
a
=
h
.
actual_
;
uint64_t
bias1
=
e
.
ToBias
();
uint64_t
bias2
=
a
.
ToBias
();
double
ulp
=
bias1
>=
bias2
?
bias1
-
bias2
:
bias2
-
bias1
;
double
ulp
=
static_cast
<
double
>
(
bias1
>=
bias2
?
bias1
-
bias2
:
bias2
-
bias1
)
;
ulpMax
=
std
::
max
(
ulpMax
,
ulp
);
ulpSum
+=
ulp
;
}
...
...
This diff is collapsed.
Click to expand it.
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