Re: Hex to ascii
- From: Terje Mathisen <spamtrap@xxxxxxxxxx>
- Date: Thu, 14 Sep 2006 21:08:16 +0200
Jean-François Michaud wrote:
Terje Mathisen wrote:In 32-bit mode the difference is even larger, the code AMD "borrowed"
converts a full 32-bit unsigned integer to 10 decimal digits in less
time than the cpu needs for a single DIV opcode! :-)
Terje
How about a lookup table?
Lookup tables are indeed good here, in fact they should be the obvious choice. :-)
However, when working with more digits and/or parallel operations, straight inline SIMD code tends to beat lookup tables due to the load stage bottleneck.
Terje
--
- <Terje.Mathisen@xxxxxxxxxxxxx>
"almost all programming can be viewed as an exercise in caching"
.
- Follow-Ups:
- Re: Hex to ascii
- From: Jean-François Michaud
- Re: Hex to ascii
- References:
- Hex to ascii
- From: Displacer
- Re: Hex to ascii
- From: Robert Redelmeier
- Re: Hex to ascii
- From: Rod Pemberton
- Re: Hex to ascii
- From: Terje Mathisen
- Re: Hex to ascii
- From: Jean-François Michaud
- Hex to ascii
- Prev by Date: Re: 8088 LZSS+RLE decompression: Can this be improved?
- Next by Date: Re: Is there nasm.el for Emacs?
- Previous by thread: Re: Hex to ascii
- Next by thread: Re: Hex to ascii
- Index(es):
Relevant Pages
|