mmcloughlin / avo

Generate x86 Assembly with Go
BSD 3-Clause "New" or "Revised" License
2.7k stars 90 forks source link

proposal: avo standard library #117

Open mmcloughlin opened 4 years ago

mmcloughlin commented 4 years ago

There are many common functions in assembly projects, from basic utilities such as memmove or memzero, to more complex functions like multi-precision arithmetic or crypto. These could live in an avo standard library, either in this repository or another.

This is also proposed by @klauspost in https://github.com/mmcloughlin/avo/issues/116#issuecomment-573834565, specifically motivated by his implementation of memmove.

dgryski commented 4 years ago

I'm reminded of my memcpy functions that stuff memory into xmm registers: https://github.com/dgryski/go-highway/blob/master/sum.py#L174

dgryski commented 4 years ago

Maybe include helpers like https://github.com/mmcloughlin/avo/issues/40#issuecomment-474609866 ?