]> git.wh0rd.org - ICEs.git/blob - bfin-2625/netlib.i.bak
more
[ICEs.git] / bfin-2625 / netlib.i.bak
1 double ntohd(double net_double) {
2 union {
3 unsigned int words[2];
4 }
5 conv_rec;
6 int i;
7 conv_rec.words[0] = (__extension__ ({
8 register unsigned int __v, __x = (conv_rec.words[0]);
9 if (__builtin_constant_p (__x)) __v = ((((__x) & 0xff000000) >> 24) | (((__x) & 0x00ff0000) >> 8) | (((__x) & 0x0000ff00) << 8) | (((__x) & 0x000000ff) << 24));
10 else __asm__ ("rorw $8, %w0;" "rorl $16, %0;" "rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc");
11 __v;
12 }
13 ));
14 for (i=0;
15 i<= 3;
16 i++) {
17 }
18 }