Altera_Forum
Honored Contributor
19 years agoLong division on Nios 2
Hi there
I have a question: Has anybody performed "long division" on Nios-2? I mean 64-bit/64-bit signed and unsigned division with [unsigned] long long of [unsigned] long data types (depends on the compiler). In GCC terminology, this should be an UDW/DW data type. I mean has anybody verified that "libgcc2.c" compiles OK for Nios-2 regarding the following runtimes: "divdi3", "udivdi3", "moddi3", "umoddi3". These ones call "divmoddi4" for performing the underlying arithmetic, so thisquestion applies to "divmoddi4" as well. Kind regards Nikolaos Kavvadias