File tree 6 files changed +57
-9
lines changed
6 files changed +57
-9
lines changed Original file line number Diff line number Diff line change 1
1
kind : pipeline
2
+ name : i386-gcc # we do not support 32-bit systems, but we run tests
3
+ platform : { os: linux, arch: amd64 }
4
+ steps :
5
+ - name : Build and Test
6
+ image : i386/ubuntu
7
+ environment :
8
+ CC : gcc
9
+ CXX : g++
10
+ BUILD_FLAGS : -- -j
11
+ CMAKE_FLAGS : -DSIMDJSON_BUILD_STATIC=ON
12
+ CTEST_FLAGS : -j4 --output-on-failure -E checkperf -E numberparsingcheck # A ULP marging 1 is detected on 32-bit GCC
13
+ commands :
14
+ - apt-get update -qq
15
+ - apt-get install -y g++ cmake gcc
16
+ - mkdir build
17
+ - cd build
18
+ - cmake $CMAKE_FLAGS ..
19
+ - cmake --build . $BUILD_FLAGS
20
+ - ctest $CTEST_FLAGS
21
+ ---
22
+ kind : pipeline
23
+ name : i386-clang # we do not support 32-bit systems, but we run tests
24
+ platform : { os: linux, arch: amd64 }
25
+ steps :
26
+ - name : Build and Test
27
+ image : i386/ubuntu
28
+ environment :
29
+ CC : clang-6.0
30
+ CXX : clang++-6.0
31
+ BUILD_FLAGS : -- -j
32
+ CMAKE_FLAGS : -DSIMDJSON_BUILD_STATIC=ON
33
+ CTEST_FLAGS : -j4 --output-on-failure -E checkperf
34
+ commands :
35
+ - apt-get update -qq
36
+ - apt-get install -y clang++-6.0 cmake
37
+ - mkdir build
38
+ - cd build
39
+ - cmake $CMAKE_FLAGS ..
40
+ - cmake --build . $BUILD_FLAGS
41
+ - ctest $CTEST_FLAGS
42
+ ---
43
+ kind : pipeline
2
44
name : gcc9
3
45
platform : { os: linux, arch: amd64 }
4
46
steps :
Original file line number Diff line number Diff line change @@ -81,15 +81,15 @@ really_inline T tape_ref::next_tape_value() const noexcept {
81
81
}
82
82
83
83
really_inline uint32_t internal::tape_ref::get_string_length () const noexcept {
84
- uint64_t string_buf_index = size_t (tape_value ());
84
+ size_t string_buf_index = size_t (tape_value ());
85
85
uint32_t len;
86
86
memcpy (&len, &doc->string_buf [size_t (string_buf_index)], sizeof (len));
87
87
return len;
88
88
}
89
89
90
90
really_inline const char * internal::tape_ref::get_c_str () const noexcept {
91
- uint64_t string_buf_index = size_t (tape_value ());
92
- return reinterpret_cast <const char *>(&doc->string_buf [size_t ( string_buf_index) + sizeof (uint32_t )]);
91
+ size_t string_buf_index = size_t (tape_value ());
92
+ return reinterpret_cast <const char *>(&doc->string_buf [string_buf_index + sizeof (uint32_t )]);
93
93
}
94
94
95
95
inline std::string_view internal::tape_ref::get_string_view () const noexcept {
Original file line number Diff line number Diff line change 1
- /* auto-generated on Fri Jun 26 01:04:15 UTC 2020. Do not edit! */
1
+ /* auto-generated on Fri Jun 26 15:35:58 UTC 2020. Do not edit! */
2
2
3
3
#include < iostream>
4
4
#include " simdjson.h"
Original file line number Diff line number Diff line change 1
- /* auto-generated on Fri Jun 26 01:04:15 UTC 2020. Do not edit! */
1
+ /* auto-generated on Fri Jun 26 15:35:58 UTC 2020. Do not edit! */
2
2
/* begin file src/simdjson.cpp */
3
3
#include "simdjson.h"
4
4
Original file line number Diff line number Diff line change 1
- /* auto-generated on Fri Jun 26 01:04:15 UTC 2020. Do not edit! */
1
+ /* auto-generated on Fri Jun 26 15:35:58 UTC 2020. Do not edit! */
2
2
/* begin file include/simdjson.h */
3
3
#ifndef SIMDJSON_H
4
4
#define SIMDJSON_H
@@ -7647,15 +7647,15 @@ really_inline T tape_ref::next_tape_value() const noexcept {
7647
7647
}
7648
7648
7649
7649
really_inline uint32_t internal::tape_ref::get_string_length () const noexcept {
7650
- uint64_t string_buf_index = size_t (tape_value ());
7650
+ size_t string_buf_index = size_t (tape_value ());
7651
7651
uint32_t len;
7652
7652
memcpy (&len, &doc->string_buf [size_t (string_buf_index)], sizeof (len));
7653
7653
return len;
7654
7654
}
7655
7655
7656
7656
really_inline const char * internal::tape_ref::get_c_str () const noexcept {
7657
- uint64_t string_buf_index = size_t (tape_value ());
7658
- return reinterpret_cast <const char *>(&doc->string_buf [size_t ( string_buf_index) + sizeof (uint32_t )]);
7657
+ size_t string_buf_index = size_t (tape_value ());
7658
+ return reinterpret_cast <const char *>(&doc->string_buf [string_buf_index + sizeof (uint32_t )]);
7659
7659
}
7660
7660
7661
7661
inline std::string_view internal::tape_ref::get_string_view () const noexcept {
Original file line number Diff line number Diff line change 1
1
#ifndef SIMDJSON_SIMDPRUNE_TABLES_H
2
2
#define SIMDJSON_SIMDPRUNE_TABLES_H
3
+
4
+
5
+ #if SIMDJSON_IMPLEMENTATION_ARM64 || SIMDJSON_IMPLEMENTATION_HASWELL || SIMDJSON_IMPLEMENTATION_WESTMERE
6
+
3
7
#include < cstdint>
4
8
5
9
namespace simdjson { // table modified and copied from
@@ -127,4 +131,6 @@ static const uint64_t thintable_epi8[256] = {
127
131
128
132
} // namespace simdjson
129
133
134
+
135
+ #endif // SIMDJSON_IMPLEMENTATION_ARM64 || SIMDJSON_IMPLEMENTATION_HASWELL || SIMDJSON_IMPLEMENTATION_WESTMERE
130
136
#endif // SIMDJSON_SIMDPRUNE_TABLES_H
You can’t perform that action at this time.
0 commit comments