mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-09 07:23:56 +08:00
Update mirdef.h
This commit is contained in:
@@ -1,30 +1,16 @@
|
|||||||
/*
|
/*
|
||||||
* MIRACL compiler/hardware definitions - mirdef.h
|
* MIRACL compiler/hardware definitions - mirdef.h
|
||||||
* This version suitable for use with most 32-bit computers
|
* For C++ build of library
|
||||||
* e.g. 80386+ PC, VAX, ARM etc. Assembly language versions of muldiv,
|
|
||||||
* muldvm, muldvd and muldvd2 will be necessary. See mrmuldv.any
|
|
||||||
*
|
|
||||||
* Also suitable for DJGPP GNU C Compiler
|
|
||||||
* ... but change __int64 to long long
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define MIRACL 32
|
#define MR_LITTLE_ENDIAN
|
||||||
#define MR_LITTLE_ENDIAN /* This may need to be changed */
|
#define MIRACL 64
|
||||||
#define mr_utype int
|
#define mr_utype long
|
||||||
/* the underlying type is usually int *
|
#define mr_unsign64 unsigned long
|
||||||
* but see mrmuldv.any */
|
#define MR_IBITS 32
|
||||||
|
#define MR_LBITS 64
|
||||||
#define mr_unsign32 unsigned int
|
#define mr_unsign32 unsigned int
|
||||||
/* 32 bit unsigned type */
|
#define MR_FLASH 52
|
||||||
#define MR_IBITS 32 /* bits in int */
|
|
||||||
#define MR_LBITS 32 /* bits in long */
|
|
||||||
#define MR_FLASH 52
|
|
||||||
/* delete this definition if integer *
|
|
||||||
* only version of MIRACL required */
|
|
||||||
/* Number of bits per double mantissa */
|
|
||||||
|
|
||||||
#define mr_dltype __int64 /* ... or long long for Unix/Linux */
|
|
||||||
#define mr_unsign64 unsigned __int64
|
|
||||||
|
|
||||||
#define MAXBASE ((mr_small)1<<(MIRACL-1))
|
#define MAXBASE ((mr_small)1<<(MIRACL-1))
|
||||||
|
#define MR_BITSINCHAR 8
|
||||||
|
#define MR_CPP
|
||||||
|
|||||||
Reference in New Issue
Block a user