catid / wirehair

Wirehair : O(N) Fountain Code for Large Data
http://wirehairfec.com
BSD 3-Clause "New" or "Revised" License
264 stars 56 forks source link

Is there a way to run on the arm architecture? #27

Open MapleStory1994 opened 3 years ago

MapleStory1994 commented 3 years ago

Thank you for sharing a good implementation. I try to compile the code on the raspberry but I get: "fatal error: tmmintrin.h: No such file or directory" in gf256.h. Is it possible to encode and decoder blocks on the arm architecture? Thanks!

catid commented 3 years ago

On Raspbian OS you are very limited. It's 32-bit and doesn't support ARM NEON by default. If you switch to a 64-bit OS when setting up the SD card it should work better. I don't have experience with 64-bit OS but this might help:

https://www.raspberrypi.org/forums/viewtopic.php?t=275370

catid commented 3 years ago

You may need to add some more defines to this line in gf256.h:

if defined(ANDROID) || defined(IOS) || defined(LINUX_ARM) || defined(powerpc) || defined(s390)

#define GF256_TARGET_MOBILE

endif // ANDROID