0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-24 02:36:16 +00:00
termux-packages/disabled-packages/kphp/common-algorithms-simd-int-to-string.h.patch
Tee KOBAYASHI 1bbe66e98a kphp: Disabled
Incompatible with latest libuber-h3. A whole bunch of patches are quite
unmaintainable.

kphp-timelib is also disabled as only kphp depends on it.
2022-11-17 18:08:03 +00:00

28 lines
878 B
Diff

--- a/common/algorithms/simd-int-to-string.h
+++ b/common/algorithms/simd-int-to-string.h
@@ -274,6 +274,9 @@
// todo anyone who wants to practice some low-level magic — welcome to implement a proper SIMD form with ARM intrinsics
#include <cstdint>
#include <cstdio>
+#ifdef __ANDROID__
+#include <inttypes.h>
+#endif
inline char *simd_uint32_to_string(uint32_t value, char *out_buffer) noexcept {
int n = sprintf(out_buffer, "%u", value);
@@ -286,12 +289,12 @@
}
inline char *simd_uint64_to_string(uint64_t value, char *out_buffer) {
- int n = sprintf(out_buffer, "%llu", value);
+ int n = sprintf(out_buffer, "%" PRIu64, value);
return out_buffer + n;
}
inline char *simd_int64_to_string(int64_t value, char *out_buffer) {
- int n = sprintf(out_buffer, "%lld", value);
+ int n = sprintf(out_buffer, "%" PRId64, value);
return out_buffer + n;
}