projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ash: exec: Stricter pathopt parsing
[oweals/busybox.git]
/
libbb
/
crc32.c
diff --git
a/libbb/crc32.c
b/libbb/crc32.c
index 0711ca84eac4f87cbd841d8e0e6bd68b3e31f1bd..728bcb73610c47505bb3e17c2458c1976e9922b0 100644
(file)
--- a/
libbb/crc32.c
+++ b/
libbb/crc32.c
@@
-15,7
+15,6
@@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
#include "libbb.h"
uint32_t *global_crc32_table;
#include "libbb.h"
uint32_t *global_crc32_table;
@@
-42,6
+41,16
@@
uint32_t* FAST_FUNC crc32_filltable(uint32_t *crc_table, int endian)
return crc_table - 256;
}
return crc_table - 256;
}
+/* Common uses: */
+uint32_t* FAST_FUNC crc32_new_table_le(void)
+{
+ return crc32_filltable(NULL, 0);
+}
+uint32_t* FAST_FUNC global_crc32_new_table_le(void)
+{
+ global_crc32_table = crc32_new_table_le();
+ return global_crc32_table;
+}
uint32_t FAST_FUNC crc32_block_endian1(uint32_t val, const void *buf, unsigned len, uint32_t *crc_table)
{
uint32_t FAST_FUNC crc32_block_endian1(uint32_t val, const void *buf, unsigned len, uint32_t *crc_table)
{