]>
Commit | Line | Data |
---|---|---|
45516216 | 1 | double ntohd(double net_double) |
2 | { | |
3 | union { | |
4 | unsigned int words[2]; | |
5 | } conv_rec; | |
6 | int i; | |
7 | conv_rec.words[0] = (__extension__( { | |
8 | register unsigned int __v, __x = | |
9 | (conv_rec.words[0]); | |
10 | if (__builtin_constant_p(__x)) __v = | |
11 | ((((__x) & 0xff000000) >> 24) | | |
12 | (((__x) & 0x00ff0000) >> 8) | | |
13 | (((__x) & 0x0000ff00) << 8) | | |
14 | (((__x) & 0x000000ff) << 24)); | |
15 | else | |
16 | __asm__("rorw $8, %w0;" "rorl $16, %0;" "rorw $8, %w0": "=r"(__v): "0"(__x):"cc"); | |
17 | __v;} | |
18 | )) ; | |
19 | for (i = 0; i <= 3; i++) { | |
20 | } | |
21 | } |