Forum Discussion
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 ...
Altera_Forum
Honored Contributor
19 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- I just want to know what should have happened when compiling s'thing like: unsigned long long a = 0xAAAAAAAAAAAAAAAA; unsigned long long b = 0x5555555555555555; unsigned long long c; c = a/b;[/b] --- Quote End --- I can say that the division should work. I did already before. But I think if you want to specify the constants, you need to add LL : unsigned long long a = 0x1122334455667788LL; Stefaan