antonblanchard / crc32-vpmsum Goto Github PK
View Code? Open in Web Editor NEWAccelerated CRC32 for POWER8 using vpmsum instructions
License: Other
Accelerated CRC32 for POWER8 using vpmsum instructions
License: Other
see https://bugzilla.redhat.com/show_bug.cgi?id=2297744
see https://tracker.ceph.com/issues/66950
...
Ceph uses assembly files from https://github.com/antonblanchard/crc32-vpmsum
Update them to the newest versions, which fixes build with Clang.
Signed-off-by: Piotr Kubaj <[[email protected]](mailto:[email protected])>
...
...
This comes from src/common/crc32c_ppc_fast_zero_asm.S, I assume. It's just broken, it needs to use TOC-relative access.
...
How would I go about implementing the crc32_combine function? Any pointers in your implementation?
https://github.com/madler/zlib/blob/master/crc32.c#L372
local uLong crc32_combine_(crc1, crc2, len2)
The combination problem is this: given the existing crc32 checksums for two separate data buffers buf1 and buf2, what is the crc32() of the concatenated buf1+buf2?
Speed is not a concern here: two 32 bit ints combining in to one 32b int. The polynom math is difficult.
/root/Clibmouse/ClickHouse/src/Common/vec_crc32.c:110:10: fatal error: 'clang_workaround.h' file not found
#include "clang_workaround.h"
PS: I was able to compile crc32-vpmsm repo successfully.
copied vec_crc32.c and crc32_contants.g in my application src path.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.