[Libre-soc-bugs] [Bug 980] Implement C-based Power ISA pseudocode compiler

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Jan 12 23:42:38 GMT 2024


https://bugs.libre-soc.org/show_bug.cgi?id=980

--- Comment #83 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Dmitry Selyutin from comment #82)

code looks nice!

>     uint64_t result;

eventually we'll need to support things with >64 bits, but this should be
mostly good for now.

>     for (i = UINT64_C(0x0); i != (UINT64_C(0x1) + 1); ++i) {

I would write that i <= UINT64_C(0x1) because that way you don't need the + 1
and because there may be for loops that need to loop zero times e.g. they start
at 5 and end at 3, tho I don't remember any particular examples.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list