mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
Refactor ccompile.h to not include system headers
This is a step toward being able to vendor the OpenZFS code in FreeBSD. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #10625
This commit is contained in:
@@ -27,10 +27,14 @@
|
||||
|
||||
#if defined(__x86_64) && defined(HAVE_AVX512BW)
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/simd.h>
|
||||
|
||||
|
||||
#ifdef __linux__
|
||||
#define __asm __asm__ __volatile__
|
||||
#endif
|
||||
|
||||
#define _REG_CNT(_0, _1, _2, _3, _4, _5, _6, _7, N, ...) N
|
||||
#define REG_CNT(r...) _REG_CNT(r, 8, 7, 6, 5, 4, 3, 2, 1)
|
||||
|
||||
@@ -29,7 +29,9 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/simd.h>
|
||||
|
||||
#ifdef __linux__
|
||||
#define __asm __asm__ __volatile__
|
||||
#endif
|
||||
|
||||
#define _REG_CNT(_0, _1, _2, _3, _4, _5, _6, _7, N, ...) N
|
||||
#define REG_CNT(r...) _REG_CNT(r, 8, 7, 6, 5, 4, 3, 2, 1)
|
||||
|
||||
Reference in New Issue
Block a user