mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-30 15:32:58 +00:00
Add macros for mpi uint max sizes
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
This commit is contained in:
parent
db084d16ea
commit
09a455e21a
@ -129,6 +129,7 @@
|
|||||||
#endif /* !MBEDTLS_HAVE_INT64 */
|
#endif /* !MBEDTLS_HAVE_INT64 */
|
||||||
typedef int64_t mbedtls_mpi_sint;
|
typedef int64_t mbedtls_mpi_sint;
|
||||||
typedef uint64_t mbedtls_mpi_uint;
|
typedef uint64_t mbedtls_mpi_uint;
|
||||||
|
#define MBEDTLS_MPI_UINT_MAX 18446744073709551615UL
|
||||||
#elif defined(__GNUC__) && ( \
|
#elif defined(__GNUC__) && ( \
|
||||||
defined(__amd64__) || defined(__x86_64__) || \
|
defined(__amd64__) || defined(__x86_64__) || \
|
||||||
defined(__ppc64__) || defined(__powerpc64__) || \
|
defined(__ppc64__) || defined(__powerpc64__) || \
|
||||||
@ -141,6 +142,7 @@ typedef uint64_t mbedtls_mpi_uint;
|
|||||||
#endif /* MBEDTLS_HAVE_INT64 */
|
#endif /* MBEDTLS_HAVE_INT64 */
|
||||||
typedef int64_t mbedtls_mpi_sint;
|
typedef int64_t mbedtls_mpi_sint;
|
||||||
typedef uint64_t mbedtls_mpi_uint;
|
typedef uint64_t mbedtls_mpi_uint;
|
||||||
|
#define MBEDTLS_MPI_UINT_MAX 18446744073709551615UL
|
||||||
#if !defined(MBEDTLS_NO_UDBL_DIVISION)
|
#if !defined(MBEDTLS_NO_UDBL_DIVISION)
|
||||||
/* mbedtls_t_udbl defined as 128-bit unsigned int */
|
/* mbedtls_t_udbl defined as 128-bit unsigned int */
|
||||||
typedef unsigned int mbedtls_t_udbl __attribute__((mode(TI)));
|
typedef unsigned int mbedtls_t_udbl __attribute__((mode(TI)));
|
||||||
@ -156,6 +158,7 @@ typedef unsigned int mbedtls_t_udbl __attribute__((mode(TI)));
|
|||||||
#endif /* !MBEDTLS_HAVE_INT64 */
|
#endif /* !MBEDTLS_HAVE_INT64 */
|
||||||
typedef int64_t mbedtls_mpi_sint;
|
typedef int64_t mbedtls_mpi_sint;
|
||||||
typedef uint64_t mbedtls_mpi_uint;
|
typedef uint64_t mbedtls_mpi_uint;
|
||||||
|
#define MBEDTLS_MPI_UINT_MAX 18446744073709551615UL
|
||||||
#if !defined(MBEDTLS_NO_UDBL_DIVISION)
|
#if !defined(MBEDTLS_NO_UDBL_DIVISION)
|
||||||
/* mbedtls_t_udbl defined as 128-bit unsigned int */
|
/* mbedtls_t_udbl defined as 128-bit unsigned int */
|
||||||
typedef __uint128_t mbedtls_t_udbl;
|
typedef __uint128_t mbedtls_t_udbl;
|
||||||
@ -165,6 +168,7 @@ typedef __uint128_t mbedtls_t_udbl;
|
|||||||
/* Force 64-bit integers with unknown compiler */
|
/* Force 64-bit integers with unknown compiler */
|
||||||
typedef int64_t mbedtls_mpi_sint;
|
typedef int64_t mbedtls_mpi_sint;
|
||||||
typedef uint64_t mbedtls_mpi_uint;
|
typedef uint64_t mbedtls_mpi_uint;
|
||||||
|
#define MBEDTLS_MPI_UINT_MAX 18446744073709551615UL
|
||||||
#endif
|
#endif
|
||||||
#endif /* !MBEDTLS_HAVE_INT32 */
|
#endif /* !MBEDTLS_HAVE_INT32 */
|
||||||
|
|
||||||
@ -175,6 +179,7 @@ typedef uint64_t mbedtls_mpi_uint;
|
|||||||
#endif /* !MBEDTLS_HAVE_INT32 */
|
#endif /* !MBEDTLS_HAVE_INT32 */
|
||||||
typedef int32_t mbedtls_mpi_sint;
|
typedef int32_t mbedtls_mpi_sint;
|
||||||
typedef uint32_t mbedtls_mpi_uint;
|
typedef uint32_t mbedtls_mpi_uint;
|
||||||
|
#define MBEDTLS_MPI_UINT_MAX 4294967295UL
|
||||||
#if !defined(MBEDTLS_NO_UDBL_DIVISION)
|
#if !defined(MBEDTLS_NO_UDBL_DIVISION)
|
||||||
typedef uint64_t mbedtls_t_udbl;
|
typedef uint64_t mbedtls_t_udbl;
|
||||||
#define MBEDTLS_HAVE_UDBL
|
#define MBEDTLS_HAVE_UDBL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user