D.E. Knuth's strlen

C

CBFalconer

jacob said:
Lew Pitcher wrote:
.... snip ...


As you (may) know, the 64 bit AMD x64 architecture is now several
years old... It seems you are not up to date what those processors
are concerned.

And the "AMD x64 architecture" is not what Knuth is talking about,
I believe. That architecture may have a 64 bit memory interface,
but is perfectly capable of addressing and accessing single 8 bit
bytes. He is worrying about systems where any memory access must
transfer a full 64 bits, and the next address (i.e. 1 greater) will
access the next 64 bits.

There are many machines that do not work like the x86.
 
J

James Dow Allen

Note that h2 is smaller than cursiz.
... the subtraction would require a further loop ...

Nonsense!

Sorry I didn't get back to you sooner on this, but
you seem to have little interest in this "bug report".
(I'll give you enough credit to assume you recognized
Mr. Naar's objection as, also, nonsense.)

Glad to help,
James Dow Allen
 
C

CBFalconer

James said:
Note that h2 is smaller than cursiz.


Nonsense!

Sorry I didn't get back to you sooner on this, but
you seem to have little interest in this "bug report".
(I'll give you enough credit to assume you recognized
Mr. Naar's objection as, also, nonsense.)

While you are right about this, you didn't deal with my attitude
that the code is adequately fast on most systems, and especially
that the original code is clear in its purpose. No fault in system
action can occur.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,042
Members
48,769
Latest member
Clifft

Latest Threads

Top