Обновить lad1/README.md
This commit is contained in:
+3
-1
@@ -21,7 +21,9 @@ divide:
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
uint16_t swap_bytes(uint16_t x) {
|
uint16_t swap_bytes(uint16_t x) {
|
||||||
return ((x & 0x00FF) << 8) |
|
|
||||||
|
return ((x & 0x00FF) << 8)
|
||||||
|
|
||||||
((x & 0xFF00) >> 8);
|
((x & 0xFF00) >> 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user