From 4d555fc7f72693a0f994305af3db142a7025d28d Mon Sep 17 00:00:00 2001 From: anazaz Date: Tue, 29 Sep 2026 07:44:07 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20lad1/README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lad1/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lad1/README.md b/lad1/README.md index 6f09f67..cad5a17 100644 --- a/lad1/README.md +++ b/lad1/README.md @@ -21,7 +21,9 @@ divide: #include uint16_t swap_bytes(uint16_t x) { - return ((x & 0x00FF) << 8) | + + return ((x & 0x00FF) << 8) + ((x & 0xFF00) >> 8); }