YoushouldhavereceivedacopyoftheGNUGeneralPublicLicense alongwiththisprogram;ifnot,writetotheFreeSoftware
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
#ifdef __powerpc64__ # error "my_checksum() is defined in mysys/crc32/crc32_ppc64.c" #endif
#ifdefined HAVE_RISCV_ZBC /* my_checksum() is dispatched by an indirect function on RISC-V, mirroring my_crc32c()incrc32c.cc.Thatfiledocumentsthetwoconstraintsonthe resolver:itrunsatloadtime,soitmayonlycallcodethatissafe
there, and it must not return NULL. */ extern"C" { static my_crc32_t rv_my_checksum_resolver(unsignedlonglong, void *hwprobe, void *)
{ return rv_zbc_supported(hwprobe) ? crc32_riscv_zbc : my_crc32_zlib;
} }
extern"C" uint32 my_checksum(uint32, constvoid *, size_t)
__attribute__((ifunc("rv_my_checksum_resolver"))); #else static my_crc32_t init_crc32()
{ #ifdefined _M_IX86 || defined _M_X64 || defined __i386__ || defined __x86_64__ if (my_crc32_t crc= crc32_pclmul_enabled()) return crc; #elifdefined HAVE_ARMV8_CRC if (crc32_aarch64_available()) return crc32_aarch64; #endif return my_crc32_zlib;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.