Skip to content

Commit 73ce1ed

Browse files
authored
Upgrade Core to 28d02328c467616ecec2bffd37c07930974fedf2 (#907)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent c9038f1 commit 73ce1ed

167 files changed

Lines changed: 13429 additions & 37651 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DEPENDENCIES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
vendorpull https://github.com/sourcemeta/vendorpull 1dcbac42809cf87cb5b045106b863e17ad84ba02
2-
core https://github.com/sourcemeta/core fe450b982907f99e542a0cfc78bc60d2b600ff7a
2+
core https://github.com/sourcemeta/core 28d02328c467616ecec2bffd37c07930974fedf2
33
bootstrap https://github.com/twbs/bootstrap 1a6fdfae6be09b09eaced8f0e442ca6f7680a61e

src/runtime/decoder_number.cc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
#include <sourcemeta/jsonbinpack/runtime_decoder.h>
22

3-
#include <cmath> // std::pow
43
#include <cstdint> // std::int64_t, std::uint64_t
54

5+
#if defined(__GNUC__) && !defined(__clang__)
6+
#pragma GCC optimize("no-reciprocal-math")
7+
#endif
8+
69
namespace sourcemeta::jsonbinpack {
710

811
auto Decoder::DOUBLE_VARINT_TUPLE(const struct DOUBLE_VARINT_TUPLE &)
912
-> sourcemeta::core::JSON {
13+
#ifdef __clang__
14+
#pragma clang fp reciprocal(off)
15+
#endif
1016
const std::int64_t digits{this->get_varint_zigzag()};
1117
const std::uint64_t point{this->get_varint()};
12-
const double divisor{std::pow(10, static_cast<double>(point))};
18+
double divisor{1.0};
19+
for (std::uint64_t i = 0; i < point; ++i) {
20+
divisor *= 10.0;
21+
}
1322
return sourcemeta::core::JSON{static_cast<double>(digits) / divisor};
1423
}
1524

vendor/core/CMakeLists.txt

Lines changed: 41 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/core/DEPENDENCIES

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/core/cmake/Findmpdecimal.cmake

Lines changed: 0 additions & 146 deletions
This file was deleted.

0 commit comments

Comments
 (0)