diff options
author | Howland, Craig D <howland@LGSInnovations.com> | 2016-03-18 18:18:15 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-03-18 21:20:06 +0100 |
commit | 19879c03c58f2a1f1d89e46ef4aa91034df37dd5 (patch) | |
tree | 50de6c438443a4b35df1622371c8f439fa22a6da | |
parent | 8e2b2adb3d0c97c663cf776b28a1f57ffb7fceef (diff) | |
download | cygnal-19879c03c58f2a1f1d89e46ef4aa91034df37dd5.tar.gz cygnal-19879c03c58f2a1f1d89e46ef4aa91034df37dd5.tar.bz2 cygnal-19879c03c58f2a1f1d89e46ef4aa91034df37dd5.zip |
Cleanup macros in chacha_private.h to be target-type independent
* libc/stdlib/chacha_private.h (U8C, U32C): Remove un-necessary macros.
(U8V, U32V): Drop masking.
-rw-r--r-- | newlib/libc/stdlib/chacha_private.h | 7 |
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)))) |