#include "c.h"
#include "port/pg_crc32c.h"
Go to the source code of this file.
◆ pg_comp_crc32c_loongarch()
Definition at line 20 of file pg_crc32c_loongarch.c.
22 const unsigned char *p =
data;
23 const unsigned char *
pend = p +
len;
33 crc = __builtin_loongarch_crcc_w_b_w(*p,
crc);
39 crc = __builtin_loongarch_crcc_w_h_w(*(
uint16 *) p,
crc);
45 crc = __builtin_loongarch_crcc_w_w_w(*(
uint32 *) p,
crc);
52 crc = __builtin_loongarch_crcc_w_d_w(*(uint64 *) p,
crc);
59 crc = __builtin_loongarch_crcc_w_w_w(*(
uint32 *) p,
crc);
64 crc = __builtin_loongarch_crcc_w_h_w(*(
uint16 *) p,
crc);
69 crc = __builtin_loongarch_crcc_w_b_w(*p,
crc);
#define PointerIsAligned(pointer, type)
const unsigned char * pend
References crc, data, len, pend, and PointerIsAligned.