libkern.h (554491ffbdcfe51993d5b436a9bbca7aba388dd3) libkern.h (d7f27102b590ec681c189d71d42d6679dce0ee65)
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 196 unchanged lines hidden (view full) ---

205
206uint32_t
207calculate_crc32c(uint32_t crc32c, const unsigned char *buffer,
208 unsigned int length);
209#ifdef _KERNEL
210#if defined(__amd64__) || defined(__i386__)
211uint32_t sse42_crc32c(uint32_t, const unsigned char *, unsigned);
212#endif
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 196 unchanged lines hidden (view full) ---

205
206uint32_t
207calculate_crc32c(uint32_t crc32c, const unsigned char *buffer,
208 unsigned int length);
209#ifdef _KERNEL
210#if defined(__amd64__) || defined(__i386__)
211uint32_t sse42_crc32c(uint32_t, const unsigned char *, unsigned);
212#endif
213#if defined(__aarch64__)
214uint32_t armv8_crc32c(uint32_t, const unsigned char *, unsigned int);
213#endif
215#endif
216#endif
214
215
216LIBKERN_INLINE void *memset(void *, int, size_t);
217#ifdef LIBKERN_BODY
218LIBKERN_INLINE void *
219memset(void *b, int c, size_t len)
220{
221 char *bb;

--- 37 unchanged lines hidden ---
217
218
219LIBKERN_INLINE void *memset(void *, int, size_t);
220#ifdef LIBKERN_BODY
221LIBKERN_INLINE void *
222memset(void *b, int c, size_t len)
223{
224 char *bb;

--- 37 unchanged lines hidden ---