xtaci / kcp-go

A Crypto-Secure Reliable-UDP Library for golang with FEC
MIT License
4.12k stars 737 forks source link

bump templexxx/xorsimd to add linux/loong64 support #270

Closed KatyushaScarlet closed 3 months ago

KatyushaScarlet commented 3 months ago

Reason

To bump the dependency version of templexxx/xorsimd for kcp-go, enabling the kcp-go to compile and run directly on linux/loong64 platform.

Loong64 has been officially supported since Go 1.19. Approximately 6 months ago, templexxx/cpu also added support for the loong64 architecture. Last week, templexxx/xorsimd upgraded its cpu package dependency to v0.1.1 to support the loong64 architecture.

Although Golang still lacks support for SIMD for the loong64 ISA (such as lsx/lasx), this pull request allows kcp-go to run basic functions on loong64 platform.

Tested on Loongson 3A5000M, 3A6000 and 3C5000 (without SIMD).

Test result