2 #define NO_ENDIAN_INLINE
11 return ((uint32
)x
[0]<<24) + ((uint32
)x
[1]<<16) + ((uint32
)x
[2]<<8) + ((uint32
)x
[3]);
18 uint32 top
= ((uint32
)x
[0]<<24) + ((uint32
)x
[1]<<16) + ((uint32
)x
[2]<<8) + ((uint32
)x
[3]);
19 uint32 bottom
= ((uint32
)x
[4]<<24) + ((uint32
)x
[5]<<16) + ((uint32
)x
[6]<<8) + ((uint32
)x
[7]);
20 return (((int64
)top
)<<32) | (int64
)bottom
;
27 return ((uint16
)x
[0]<<8) + x
[1];
31 write_word (addr
, data
)
35 addr
[0] = (data
>> 8) & 0xff;
36 addr
[1] = data
& 0xff;
40 write_longword (addr
, data
)
44 addr
[0] = (data
>> 24) & 0xff;
45 addr
[1] = (data
>> 16) & 0xff;
46 addr
[2] = (data
>> 8) & 0xff;
47 addr
[3] = data
& 0xff;
51 write_longlong (addr
, data
)
56 addr
[1] = (data
>> 48) & 0xff;
57 addr
[2] = (data
>> 40) & 0xff;
58 addr
[3] = (data
>> 32) & 0xff;
59 addr
[4] = (data
>> 24) & 0xff;
60 addr
[5] = (data
>> 16) & 0xff;
61 addr
[6] = (data
>> 8) & 0xff;
62 addr
[7] = data
& 0xff;
This page took 0.030683 seconds and 4 git commands to generate.