Mail Archives: djgpp-workers/2000/05/23/07:51:44
On Tue, 23 May 2000, Dieter Buerssner wrote:
> On 23 May 00, at 12:06, Eli Zaretskii wrote:
>
> > The code seems consistent with C9X draft, as far as I could see, but
> > isn't it better to replace it with inline asm that does this in a
> > single instruction?
>
> Gcc will usually produce only one idiv instruction for n/d; n%d pairs
> for integer types smaller long long.
Sorry for not being clear.
First, I meant the long long version as well. And second, I was thinking
about putting a fast inline version into stdlib.h as a macro, and making
the function versions use that macro as their body. We do that for getc
and putc, for example.
- Raw text -