This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: no mul/div instruction
- From: "Kunal Parmar" <kunalparmar at gmail dot com>
- To: "Ian Lance Taylor" <iant at google dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 22 Apr 2008 16:53:54 -0400
- Subject: Re: no mul/div instruction
- References: <480E164A.6020205@gmail.com> <m3bq41iz0u.fsf@google.com>
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