Thema
:
Delphi
Big endian float value - hot to in Delphi
Einzelnen Beitrag anzeigen
BUG
Registriert seit: 4. Dez 2003
Ort: Cottbus
2.094 Beiträge
#
2
AW: Big endian float value - hot to in Delphi
17. Feb 2012, 02:10
You can just cast the float to a packed array of byte of the same size and do the reordering. Then cast the result back to float.
You can use
gammatester's solution
.
If you have to
handle
large datasets, you might consider using
BSWAP
or
MOVBE
.
EDIT:
There are
byte swapping functions in the Code-Library
using these instructions.
Geändert von BUG (17. Feb 2012 um
02:18
Uhr)
Zitat
BUG
Öffentliches Profil ansehen
Mehr Beiträge von BUG finden