google / cityhash

Automatically exported from code.google.com/p/cityhash
MIT License
1.1k stars 183 forks source link

Getting a 256 bit output on a Raspberry Pi 3 #21

Open matteomonti opened 7 years ago

matteomonti commented 7 years ago

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?

ghost commented 7 years ago

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

sh1boot commented 7 years ago

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?

wadget01 commented 2 years ago

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?