-# $OpenBSD: Makefile.inc,v 1.6 2021/05/01 16:11:09 visa Exp $
+# $OpenBSD: Makefile.inc,v 1.7 2023/01/20 10:07:52 jsing Exp $
# mips64-specific libcrypto build rules
SRCS+= bf_enc.c
# bn
SSLASM+= bn mips bn-mips
-CFLAGS+= -DBN_DIV3W
SSLASM+= bn mips-mont mips-mont
CFLAGS+= -DOPENSSL_BN_ASM_MONT
# camellia
-/* $OpenBSD: bn_arch.h,v 1.1 2023/01/20 10:04:34 jsing Exp $ */
+/* $OpenBSD: bn_arch.h,v 1.2 2023/01/20 10:07:52 jsing Exp $ */
/*
* Copyright (c) 2023 Joel Sing <jsing@openbsd.org>
*
#ifndef OPENSSL_NO_ASM
+#define HAVE_BN_DIV_3_WORDS
+
#endif
#endif
-/* $OpenBSD: bn_div.c,v 1.31 2023/01/18 05:29:48 jsing Exp $ */
+/* $OpenBSD: bn_div.c,v 1.32 2023/01/20 10:07:52 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
#include <openssl/bn.h>
#include <openssl/err.h>
+#include "bn_arch.h"
#include "bn_local.h"
BN_ULONG bn_div_3_words(const BN_ULONG *m, BN_ULONG d1, BN_ULONG d0);
-#ifndef BN_DIV3W
+#ifndef HAVE_BN_DIV_3_WORDS
#if !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM)
# if defined(__GNUC__) && __GNUC__>=2
return q;
}
-#endif /* !BN_DIV3W */
+#endif /* !HAVE_BN_DIV_3_WORDS */
/*
* BN_div_internal computes quotient := numerator / divisor, rounding towards