0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-24 01:26:15 +00:00
termux-packages/disabled-packages/kphp/common-crc32c_aarch64.cpp.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

21 lines
599 B
Diff

--- a/common/crc32c_aarch64.cpp
+++ b/common/crc32c_aarch64.cpp
@@ -25,7 +25,7 @@
static uint32_t aarch64_native_crc(const void *buffer, long int len,
uint32_t crc) {
- const uint8_t *p = buffer;
+ const uint8_t *p = (const uint8_t *)buffer;
int64_t length = len;
while ((length -= sizeof(uint64_t)) >= 0) {
@@ -98,7 +98,7 @@
// k2=CRC(x^(SEGMENTBYTES*8))
const poly64_t k0 = 0x8d96551c, k1 = 0xbd6f81f8, k2 = 0xdcb17aa4;
- const uint8_t *p = buf;
+ const uint8_t *p = (const uint8_t *)buf;
while (length >= KBYTES) {
crc0 = crc;