How to use CRC32 of SSE 4.2 on i3/5/7?

Holger Kiehl <[email protected]>
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <[email protected]>
Hello

In my application I use a lot of crc32 checksum calculation in a little
C function. I now have access to a system with an i7 which does have
crc32 as an instruction. How can I make use of this instruction in
my program? Most likely one can do this directly via assembler code, but
is there support for this via libc?

Can someone please show me how I could use hardware accelerated crc32
checksum calculation in my code?

Thanks,
Holger
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.