I want to write assembly code to swap byte order in a word, that is from
What's the best way to do it?
e.g.byteswap4 generate following inline code
R2 = R0 << 0x8 ( V ) ;
R3 = R0 >> 8 ( V ) ;
R2 = R2 | R3 ;
R1=PACK ( R2.L , R2.H ) ;
there are integrated functions usable within VDSP
or short byteswap2(short);
I think the functions are optimized - take a look at the generated code
Retrieving data ...