summaryrefslogtreecommitdiff
path: root/source/luametatex/source/mp/mpc/mp.h
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2023-04-27 00:04:07 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2023-04-27 00:04:07 +0200
commit6b25a7a970ba9553adf8077ef2eecb50a5d77818 (patch)
treef06e40077ba9e55af4bf6cab52313f79f8ea84a8 /source/luametatex/source/mp/mpc/mp.h
parent657457ef4a08c1f000f272e00f654f4064cc37bd (diff)
downloadcontext-6b25a7a970ba9553adf8077ef2eecb50a5d77818.tar.gz
2023-04-26 23:31:00
Diffstat (limited to 'source/luametatex/source/mp/mpc/mp.h')
-rw-r--r--source/luametatex/source/mp/mpc/mp.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/luametatex/source/mp/mpc/mp.h b/source/luametatex/source/mp/mpc/mp.h
index 0b8e3def9..d5de57d35 100644
--- a/source/luametatex/source/mp/mpc/mp.h
+++ b/source/luametatex/source/mp/mpc/mp.h
@@ -6,6 +6,7 @@
# include "avl.h"
# include "auxmemory.h"
+# include "auxposit.h"
# include <string.h>
# include <setjmp.h>
@@ -19,12 +20,14 @@ typedef enum mp_number_type {
mp_angle_type,
mp_double_type,
mp_binary_type,
- mp_decimal_type
+ mp_decimal_type,
+ mp_posit_type
} mp_number_type;
typedef union mp_number_store {
void *num;
double dval;
int val;
+ posit_t pval;
} mp_number_store;
typedef struct mp_number_data {
mp_number_store data;
@@ -76,7 +79,8 @@ typedef enum mp_math_mode {
mp_math_scaled_mode,
mp_math_double_mode,
mp_math_binary_mode,
- mp_math_decimal_mode
+ mp_math_decimal_mode,
+ mp_math_posit_mode
} mp_math_mode;
typedef struct mp_knot_data *mp_knot;
typedef struct mp_knot_data {