divmod, div, mod

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I need advice.
I am working on a new backend for a 16-bit machine.
I implemented div and mov with divmodM4 patterns and included
my own functions _udivmodqi4 _divmodqi4 _udivmodhi4 _divmodhi4 in libgcc.
Now the issue is that libgcc calls __udivhi3 and __umodhi3 (which are
not defined) in __divsi3.

My question is:
should I implement umodhi3 and udivhi3 and include them in libgcc so
__divsi3 is alright,
or should I implement divmodsi4 to override __divsi3 and __modsi3?

Thank you.

Regards.

Florent

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux