google / cityhash

Automatically exported from code.google.com/p/cityhash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting a 256 bit output on a Raspberry Pi 3

matteomonti opened this issue · comments

I really appreciated the fact that a version of cityhash can provide 256 bit output, e.g. when using CityHashCrc256(). However, to get that going I had to build with ./configure --enable-sse4.2 and make all check CXXFLAGS="-g -O3 -msse4.2" (as per instructions). As far as my understanding goes, however, SSE4.2 is not supported on a Raspberry Pi 3.

So I was wondering: how can I get a 256 bit output on that platform? Are there workarounds that don't use hardware-accelerated CRC?

There is no SSE instructions on ARM. SSE is intel-only feature.

commented

The code needs porting to NEON. It was on my TODO list a long time ago, but it fell off the bottom.

Does the 256-bit algorithm need crypto extensions?

I really appreciated the fact that a version of cityhash can provide 256 bit output, e.g. when using CityHashCrc256(). However, to get that going I had to build with ./configure --enable-sse4.2 and make all check CXXFLAGS="-g -O3 -msse4.2" (as per instructions). As far as my understanding goes, however, SSE4.2 is not supported on a Raspberry Pi 3.

So I was wondering: how can I get a 256 bit output on that platform? Are there workarounds that don't use hardware-accelerated CRC?