Changeset View
Changeset View
Standalone View
Standalone View
sys/libkern/kern_crc32.c
- This file was moved from sys/libkern/crc32.c.
/*- | /*- | ||||
ota_j.email.ne.jp: By the way, there are files named sys/kern/kern_xxx.c and sys/libkern/xxx.c. | |||||
* COPYRIGHT (C) 1986 Gary S. Brown. You may use this program, or | * COPYRIGHT (C) 1986 Gary S. Brown. You may use this program, or | ||||
* code or tables extracted from it, as desired without restriction. | * code or tables extracted from it, as desired without restriction. | ||||
*/ | */ | ||||
/* | /* | ||||
* First, the polynomial itself and its table of feedback terms. The | * First, the polynomial itself and its table of feedback terms. The | ||||
* polynomial is | * polynomial is | ||||
* X^32+X^26+X^23+X^22+X^16+X^12+X^11+X^10+X^8+X^7+X^5+X^4+X^2+X^1+X^0 | * X^32+X^26+X^23+X^22+X^16+X^12+X^11+X^10+X^8+X^7+X^5+X^4+X^2+X^1+X^0 | ||||
Show All 35 Lines | |||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD: head/sys/libkern/crc32.c 323923 2017-09-22 12:45:15Z mckusick $"); | __FBSDID("$FreeBSD: head/sys/libkern/crc32.c 323923 2017-09-22 12:45:15Z mckusick $"); | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#include <sys/libkern.h> | #include <sys/libkern.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/crc32.h> | |||||
#if defined(__amd64__) || defined(__i386__) | #if defined(__amd64__) || defined(__i386__) | ||||
#include <machine/md_var.h> | #include <machine/md_var.h> | ||||
#include <machine/specialreg.h> | #include <machine/specialreg.h> | ||||
#endif | #endif | ||||
#if defined(__aarch64__) | #if defined(__aarch64__) | ||||
#include <machine/cpu.h> | #include <machine/cpu.h> | ||||
▲ Show 20 Lines • Show All 729 Lines • Show Last 20 Lines |
By the way, there are files named sys/kern/kern_xxx.c and sys/libkern/xxx.c.
sys/libkern/kern_crc32.c format doesn't follow any of existing filename format.
What's the policy between kern and libkern directory?