blob: 18b3b43aa67c23d724af76740d12291a2224b7f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* ISC license. */
#include <skalibs/uint32.h>
void uint32_reverse (char *s, unsigned int n)
{
while (n--)
{
char c = s[0] ;
s[0] = s[3] ;
s[3] = c ;
c = s[1] ;
s[1] = s[2] ;
s[2] = c ;
s += 4 ;
}
}
|