1/* $OpenBSD: bn_arch.h,v 1.7 2023/01/23 12:17:58 jsing Exp $ */ 2/* 3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 */ 17 18#ifndef HEADER_BN_ARCH_H 19#define HEADER_BN_ARCH_H 20 21#ifndef OPENSSL_NO_ASM 22 23#define HAVE_BN_ADD_WORDS 24 25#define HAVE_BN_DIV_WORDS 26#define HAVE_BN_DIV_3_WORDS 27 28#define HAVE_BN_MUL_ADD_WORDS 29#define HAVE_BN_MUL_COMBA4 30#define HAVE_BN_MUL_COMBA8 31#define HAVE_BN_MUL_WORDS 32 33#define HAVE_BN_SQR_COMBA4 34#define HAVE_BN_SQR_COMBA8 35#define HAVE_BN_SQR_WORDS 36 37#define HAVE_BN_SUB_WORDS 38 39#endif 40#endif 41