18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Optimited xor routines
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright IBM Corp. 2016
68c2ecf20Sopenharmony_ci * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci#ifndef _ASM_S390_XOR_H
98c2ecf20Sopenharmony_ci#define _ASM_S390_XOR_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciextern struct xor_block_template xor_block_xc;
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#undef XOR_TRY_TEMPLATES
148c2ecf20Sopenharmony_ci#define XOR_TRY_TEMPLATES				\
158c2ecf20Sopenharmony_cido {							\
168c2ecf20Sopenharmony_ci	xor_speed(&xor_block_xc);			\
178c2ecf20Sopenharmony_ci} while (0)
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#define XOR_SELECT_TEMPLATE(FASTEST)	(&xor_block_xc)
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#endif /* _ASM_S390_XOR_H */
22