Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/chacha_private.h')
-rw-r--r--newlib/libc/stdlib/chacha_private.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/newlib/libc/stdlib/chacha_private.h b/newlib/libc/stdlib/chacha_private.h
index b48c981e5..0a3e38c10 100644
--- a/newlib/libc/stdlib/chacha_private.h
+++ b/newlib/libc/stdlib/chacha_private.h
@@ -16,11 +16,8 @@ typedef struct
u32 input[16]; /* could be compressed */
} chacha_ctx;
-#define U8C(v) (v##U)
-#define U32C(v) (v##U)
-
-#define U8V(v) ((u8)(v) & U8C(0xFF))
-#define U32V(v) ((u32)(v) & U32C(0xFFFFFFFF))
+#define U8V(v) ((u8)(v))
+#define U32V(v) ((u32)(v))
#define ROTL32(v, n) \
(U32V((v) << (n)) | ((v) >> (32 - (n))))