version 1.1.1.3, 2018/04/24 16:50:52
|
version 1.1.1.4, 2018/04/24 17:21:02
|
Line 151 static inline void cpu_to_le16wu(uint16_
|
Line 151 static inline void cpu_to_le16wu(uint16_
|
{ |
{ |
uint8_t *p1 = (uint8_t *)p; |
uint8_t *p1 = (uint8_t *)p; |
|
|
p1[0] = v; |
p1[0] = v & 0xff; |
p1[1] = v >> 8; |
p1[1] = v >> 8; |
} |
} |
|
|
Line 159 static inline void cpu_to_le32wu(uint32_
|
Line 159 static inline void cpu_to_le32wu(uint32_
|
{ |
{ |
uint8_t *p1 = (uint8_t *)p; |
uint8_t *p1 = (uint8_t *)p; |
|
|
p1[0] = v; |
p1[0] = v & 0xff; |
p1[1] = v >> 8; |
p1[1] = v >> 8; |
p1[2] = v >> 16; |
p1[2] = v >> 16; |
p1[3] = v >> 24; |
p1[3] = v >> 24; |
Line 188 static inline void cpu_to_be16wu(uint16_
|
Line 188 static inline void cpu_to_be16wu(uint16_
|
uint8_t *p1 = (uint8_t *)p; |
uint8_t *p1 = (uint8_t *)p; |
|
|
p1[0] = v >> 8; |
p1[0] = v >> 8; |
p1[1] = v; |
p1[1] = v & 0xff; |
} |
} |
|
|
static inline void cpu_to_be32wu(uint32_t *p, uint32_t v) |
static inline void cpu_to_be32wu(uint32_t *p, uint32_t v) |
Line 198 static inline void cpu_to_be32wu(uint32_
|
Line 198 static inline void cpu_to_be32wu(uint32_
|
p1[0] = v >> 24; |
p1[0] = v >> 24; |
p1[1] = v >> 16; |
p1[1] = v >> 16; |
p1[2] = v >> 8; |
p1[2] = v >> 8; |
p1[3] = v; |
p1[3] = v & 0xff; |
} |
} |
|
|
#endif |
#endif |