diff options
author | Lauri Kasanen <curaga@operamail.com> | 2013-01-14 05:20:50 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-14 05:20:50 +0100 |
commit | b8173b603f57dcf918a67f1ec00763ab5f4e1cf8 (patch) | |
tree | 726549290ba408cf68561c4c1c2d591a80ded319 /include/platform.h | |
parent | b7841cf7b919b16d1bd4619154bf7cb4c22b4ccd (diff) | |
download | busybox-w32-b8173b603f57dcf918a67f1ec00763ab5f4e1cf8.tar.gz busybox-w32-b8173b603f57dcf918a67f1ec00763ab5f4e1cf8.tar.bz2 busybox-w32-b8173b603f57dcf918a67f1ec00763ab5f4e1cf8.zip |
sha3sum: new applet
function old new delta
KeccakF - 496 +496
KeccakF_RoundConstants - 192 +192
sha3_hash - 171 +171
sha3_end - 40 +40
hash_file 274 299 +25
KeccakF_RotationConstants - 25 +25
KeccakF_PiLane - 25 +25
packed_usage 29213 29232 +19
sha3_begin - 18 +18
KeccakF_Mod5 - 10 +10
applet_names 2445 2453 +8
applet_main 1420 1424 +4
applet_nameofs 710 712 +2
------------------------------------------------------------------------------
(add/remove: 8/0 grow/shrink: 9/7 up/down: 1049/-54) Total: ~995 bytes
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/platform.h')
-rw-r--r-- | include/platform.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/platform.h b/include/platform.h index 4025561c6..128230658 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -205,6 +205,7 @@ | |||
205 | 205 | ||
206 | #include <stdint.h> | 206 | #include <stdint.h> |
207 | typedef int bb__aliased_int FIX_ALIASING; | 207 | typedef int bb__aliased_int FIX_ALIASING; |
208 | typedef long bb__aliased_long FIX_ALIASING; | ||
208 | typedef uint16_t bb__aliased_uint16_t FIX_ALIASING; | 209 | typedef uint16_t bb__aliased_uint16_t FIX_ALIASING; |
209 | typedef uint32_t bb__aliased_uint32_t FIX_ALIASING; | 210 | typedef uint32_t bb__aliased_uint32_t FIX_ALIASING; |
210 | 211 | ||
@@ -212,7 +213,8 @@ typedef uint32_t bb__aliased_uint32_t FIX_ALIASING; | |||
212 | * a lvalue. This makes it more likely to not swap them by mistake | 213 | * a lvalue. This makes it more likely to not swap them by mistake |
213 | */ | 214 | */ |
214 | #if defined(i386) || defined(__x86_64__) || defined(__powerpc__) | 215 | #if defined(i386) || defined(__x86_64__) || defined(__powerpc__) |
215 | # define move_from_unaligned_int(v, intp) ((v) = *(bb__aliased_int*)(intp)) | 216 | # define move_from_unaligned_int(v, intp) ((v) = *(bb__aliased_int*)(intp)) |
217 | # define move_from_unaligned_long(v, longp) ((v) = *(bb__aliased_long*)(longp)) | ||
216 | # define move_from_unaligned16(v, u16p) ((v) = *(bb__aliased_uint16_t*)(u16p)) | 218 | # define move_from_unaligned16(v, u16p) ((v) = *(bb__aliased_uint16_t*)(u16p)) |
217 | # define move_from_unaligned32(v, u32p) ((v) = *(bb__aliased_uint32_t*)(u32p)) | 219 | # define move_from_unaligned32(v, u32p) ((v) = *(bb__aliased_uint32_t*)(u32p)) |
218 | # define move_to_unaligned16(u16p, v) (*(bb__aliased_uint16_t*)(u16p) = (v)) | 220 | # define move_to_unaligned16(u16p, v) (*(bb__aliased_uint16_t*)(u16p) = (v)) |
@@ -221,6 +223,7 @@ typedef uint32_t bb__aliased_uint32_t FIX_ALIASING; | |||
221 | #else | 223 | #else |
222 | /* performs reasonably well (gcc usually inlines memcpy here) */ | 224 | /* performs reasonably well (gcc usually inlines memcpy here) */ |
223 | # define move_from_unaligned_int(v, intp) (memcpy(&(v), (intp), sizeof(int))) | 225 | # define move_from_unaligned_int(v, intp) (memcpy(&(v), (intp), sizeof(int))) |
226 | # define move_from_unaligned_long(v, longp) (memcpy(&(v), (longp), sizeof(long))) | ||
224 | # define move_from_unaligned16(v, u16p) (memcpy(&(v), (u16p), 2)) | 227 | # define move_from_unaligned16(v, u16p) (memcpy(&(v), (u16p), 2)) |
225 | # define move_from_unaligned32(v, u32p) (memcpy(&(v), (u32p), 4)) | 228 | # define move_from_unaligned32(v, u32p) (memcpy(&(v), (u32p), 4)) |
226 | # define move_to_unaligned16(u16p, v) do { \ | 229 | # define move_to_unaligned16(u16p, v) do { \ |