1 // SPDX-License-Identifier: CDDL-1.0 2 /* 3 * CDDL HEADER START 4 * 5 * The contents of this file are subject to the terms of the 6 * Common Development and Distribution License (the "License"). 7 * You may not use this file except in compliance with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or https://opensource.org/licenses/CDDL-1.0. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright (C) 2019 Lawrence Livermore National Security, LLC. 24 */ 25 26 #ifndef _LINUX_SIMD_H 27 #define _LINUX_SIMD_H 28 29 #if defined(__x86) 30 #include <linux/simd_x86.h> 31 32 #elif defined(__arm__) 33 #include <linux/simd_arm.h> 34 35 #elif defined(__aarch64__) 36 #include <linux/simd_aarch64.h> 37 38 #elif defined(__powerpc__) 39 #include <linux/simd_powerpc.h> 40 41 #else 42 #define kfpu_allowed() 0 43 #define kfpu_begin() do {} while (0) 44 #define kfpu_end() do {} while (0) 45 #define kfpu_init() 0 46 #define kfpu_fini() ((void) 0) 47 48 #endif 49 50 void simd_stat_init(void); 51 void simd_stat_fini(void); 52 53 #endif /* _LINUX_SIMD_H */ 54