littel to big endian question...
Posted: Sat Mar 20, 2010 9:37 pm
HI ALL!
I'm working on a routine to convert littel to big endian longwords and get some problem...
maybe I'm only a newbe guy...
To convert shorts was all really simple! I use a ror(or rol) and all works great
The poblem was when I try to convert longs...probably I miss some function but I cant reach to swap the position for bytes to convert from little to big...
Any idea here?
I know that i have to swap the bytes of a long(for ex: 1,2,3,4 to 4,3,2,1) but I cant found any function in hollywood to do that...
Thanks a LOT!!!!!!
I'm working on a routine to convert littel to big endian longwords and get some problem...
maybe I'm only a newbe guy...
To convert shorts was all really simple! I use a ror(or rol) and all works great
The poblem was when I try to convert longs...probably I miss some function but I cant reach to swap the position for bytes to convert from little to big...
Any idea here?
I know that i have to swap the bytes of a long(for ex: 1,2,3,4 to 4,3,2,1) but I cant found any function in hollywood to do that...
Thanks a LOT!!!!!!