Re: QC Report on Swap Function
- From: Max <nospam@xxxxxxxxxx>
- Date: Sun, 28 Aug 2005 21:56:56 +0200
Kristofer Skaug wrote:
Lars wrote:
True but why no have a swap there is working on 4 byte variables ? For the next version of delphi we can make some new functions for borland.
A truly useful family of swapping functions should include ByteSwap16,-24,-32,-48,-64
I've long ago "rolled my own" for all of the above, but better and faster implementations are always welcome!
Byte-swapping functions should IMO not be overloaded, as the specific data representation is inherently important; so the programmer should be explicit about the exact swap being done. Anyway, the compiler couldn't distinguish between 24 and 32 bit input, or 48 and 64 bit input, for that matter.
Borland should remove such old stuff left from TP days (like Real48, ...)
-- ------------------------------------------------- Binary Packets with daily error corrections http://www.de.freepascal.org/lazarus/ New: Free Pascal 2.1.1 / Lazarus 0.9.9 ------------------------------------------------- Create native 64-bit compiler/IDE Vote http://qc.borland.com/wc/qcmain.aspx?d=7324 ------------------------------------------------- Parameterized Types (aka Generics) also for Win32 Vote http://qc.borland.com/wc/qcmain.aspx?d=11168 ------------------------------------------------- Help system needs major work Vote http://qc.borland.com/wc/qcmain.aspx?d=13986 ------------------------------------------------- .
- Follow-Ups:
- Re: QC Report on Swap Function
- From: Will DeWitt Jr.
- Re: QC Report on Swap Function
- From: Kristofer Skaug
- Re: QC Report on Swap Function
- From: Rudy Velthuis [TeamB]
- Re: QC Report on Swap Function
- References:
- QC Report on Swap Function
- From: Dennis
- Re: QC Report on Swap Function
- From: Rudy Velthuis [TeamB]
- Re: QC Report on Swap Function
- From: Lars
- Re: QC Report on Swap Function
- From: Kristofer Skaug
- QC Report on Swap Function
- Prev by Date: Re: QC Report on Swap Function
- Next by Date: Re: QC Report on Swap Function
- Previous by thread: Re: QC Report on Swap Function
- Next by thread: Re: QC Report on Swap Function
- Index(es):
Relevant Pages
|