valyala / fasthttp

Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
MIT License
21.91k stars 1.76k forks source link

fix round2_32 #1607

Closed Duncaen closed 1 year ago

Duncaen commented 1 year ago

There was a missing import in round2_32.go.

I split the tests into per int size files too, since unsafe.Sizeof(int(0)) == 4 runtime does not allow to pass 64 bit constants to 32 bit functions at compile time. Not sure if there is a better solution.

Duncaen commented 1 year ago

round2_64 is missing x |= x >> 32 not sure if this is intentional because of the 100MB cut-off.

erikdubbelboer commented 1 year ago

Thanks!