003 File Manager
Current Path:
/usr/src/lib/libproc
usr
/
src
/
lib
/
libproc
/
📁
..
📄
Makefile
(1.01 KB)
📄
Makefile.depend
(324 B)
📄
Makefile.depend.options
(244 B)
📄
Makefile.inc
(40 B)
📄
_libproc.h
(2.71 KB)
📄
crc32.c
(3.3 KB)
📄
crc32.h
(532 B)
📄
libproc.h
(5.51 KB)
📄
proc_bkpt.c
(6.94 KB)
📄
proc_create.c
(6.22 KB)
📄
proc_regs.c
(4.13 KB)
📄
proc_rtld.c
(3.83 KB)
📄
proc_sym.c
(17.1 KB)
📄
proc_util.c
(5.13 KB)
📁
tests
Editing: crc32.h
/*- * COPYRIGHT (C) 1986 Gary S. Brown. You may use this program, or * code or tables extracted from it, as desired without restriction. * * $FreeBSD$ */ #ifndef _CRC32_H_ #define _CRC32_H_ #include <stdint.h> /* uint32_t */ #include <stdlib.h> /* size_t */ extern uint32_t crc32_tab[]; static __inline uint32_t crc32(const void *buf, size_t size) { const uint8_t *p = buf; uint32_t crc; crc = ~0U; while (size--) crc = crc32_tab[(crc ^ *p++) & 0xFF] ^ (crc >> 8); return (crc ^ ~0U); } #endif /* !_CRC32_H_ */
Upload File
Create Folder