root/crypto/openssl/include/crypto/bn_conf.h
/* clang-format off */
/* WARNING: do not edit! */
/* Generated by Makefile from include/crypto/bn_conf.h.in */
/* clang-format on */
/*
 * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
 *
 * Licensed under the Apache License 2.0 (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * in the file LICENSE in the source distribution or at
 * https://www.openssl.org/source/license.html
 */

#ifndef OSSL_CRYPTO_BN_CONF_H
#define OSSL_CRYPTO_BN_CONF_H
#pragma once

/*
 * The contents of this file are not used in the UEFI build, as
 * both 32-bit and 64-bit builds are supported from a single run
 * of the Configure script.
 */

/* Should we define BN_DIV2W here? */

/* Only one for the following should be defined */
/* clang-format off */
#define SIXTY_FOUR_BIT_LONG
    /* clang-format on */
    /* clang-format off */
#undef SIXTY_FOUR_BIT
    /* clang-format on */
    /* clang-format off */
#undef THIRTY_TWO_BIT
/* clang-format on */

#endif

/**
 * OpenSSL's Configure script generates these values automatically for the host
 * architecture, but FreeBSD provides values which are universal for all
 * supported target architectures.
 */

#ifndef __FREEBSD_BN_CONF_H__
#define __FREEBSD_BN_CONF_H__

# undef SIXTY_FOUR_BIT_LONG
# undef SIXTY_FOUR_BIT
# undef THIRTY_TWO_BIT

# if __SIZEOF_LONG__ == 8
#  define SIXTY_FOUR_BIT_LONG
#  undef SIXTY_FOUR_BIT
#  undef THIRTY_TWO_BIT
# elif __SIZEOF_LONG__ == 4
#  undef SIXTY_FOUR_BIT_LONG
#  undef SIXTY_FOUR_BIT
#  define THIRTY_TWO_BIT
# else
#  error Unsupported size of long
# endif

#endif  /* __FREEBSD_BN_CONF_H__ */