Re: QC Report on Swap Function



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 ------------------------------------------------- .



Relevant Pages

  • Re: Kylix is dead?
    ... IMHO if Borland like come back to big success with Delphi need to put strong ... - release a strong 64bit compiler / VCL before all whistless&bells of ALM ... > Vote http://qc.borland.com/wc/qcmain.aspx?d=7324 ...
    (borland.public.delphi.non-technical)
  • Re: What Delphi users really want (other than bugfixes)
    ... > simply taught developers to ignore QC. ... I must say that I view a 64-bit Delphi compiler in the same light as ... I still view Kylix as important and a little more important than a ... I'm not saying that people shouldn't vote for a 64-bit compiler. ...
    (borland.public.delphi.non-technical)
  • Re: fpc beats gcc? delphi?
    ... I know that for what I do, Delphi and C++ Builder are really bad compared to other commercial C++ compilers... ... Maybe for the x64 compiler... ... just over 1 vote per issue per year. ... about adding optimizations to the compiler. ...
    (borland.public.delphi.non-technical)
  • Re: In My Dreams (Also)
    ... > Free for hobyst/students with bundled and free for comercial use ... There is always room for improvement, but for most practical purposes is ... Vote for it on QC, ... You can never have 100% accurate translation, so Borland would be flooded ...
    (borland.public.delphi.non-technical)
  • Re: Delphi QC Top Voted
    ... John Kaster (Borland) wrote: ... With more frequent patch releases, ... so I must drop by and vote for it. ...
    (borland.public.delphi.non-technical)