sy2002 / QNICE-FPGA

QNICE-FPGA is a 16-bit computer system for recreational programming built as a fully-fledged System-on-a-Chip in portable VHDL.
http://qnice-fpga.com
Other
69 stars 15 forks source link

Optimize C library functions #164

Closed MJoergen closed 3 years ago

MJoergen commented 3 years ago

The library functions __lslint32 and __lsrint32 can be optimized by making use of the monitor calls shl32 and shr32.

MJoergen commented 3 years ago

I'm closing this Issue again.

I examined the generated assembly code for __lslint32 and __lsrint32, and they are already highly optimized with an implementation close to that of the corresponding monitor calls.