guile-user
[Top][All Lists]
Advanced

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

Re: Does anyone have a better scm_string_hash ?


From: Marius Vollmer
Subject: Re: Does anyone have a better scm_string_hash ?
Date: Mon, 17 Nov 2003 18:57:58 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

Allister MacLeod <address@hidden> writes:

> Just for reference, what are the timings on a Pentium for these
> instructions?

I don't know...

> I assume from your pleased comments that
> assign-from-plus-and-multiply is sufficiently fast

"x = h + h*8" is in reality "lea (%edi,%edi,8),%edx" which is not a
general multiply-add.

> I'm curious as to why the last line of the second
> way ends up being h=x+a*1, instead of h=x+a.

It's "lea (%edx,%eax,1),%edi".  Maybe the x86 doesn't have a 3-op add
instruction?

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

[Prev in Thread] Current Thread [Next in Thread]