This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: no mul/div instruction


Hi Ian,

On Tue, Apr 22, 2008 at 1:24 PM, Ian Lance Taylor <iant@google.com> wrote:
>  It depends on UNITS_PER_WORD.  If UNITS_PER_WORD is 4, you need
>  __mulsi3.  If UNITS_PER_WORD is 2, you need __mulhi3, and, if you have
>  32-bit integer types, you will also need __mulsi3.  In the latter case
>  you can, if you like, get code for __mulsi3 from longlong.h--see the
>  comments at the top of the file.

UNITS_PER_WORD is 2 and INT_TYPE_SIZE is 16. This means I need to
provide __mulhi3. Does this mean that libgcc will provide the definition of
__mulsi3 ?

Thanks,
Kunal


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]