summaryrefslogtreecommitdiffstats
path: root/mpi/mpi.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-04-22 19:53:47 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-04-22 19:53:47 -0700
commit686fd1ee9baa6e5700ceeecf801acf62696e8228 (patch)
treef908c967fd0a974574bfaa030f067b43a4fbc578 /mpi/mpi.h
parentde299fde801e24b9ecd2fdd02e827c915304b9c3 (diff)
downloadtxr-686fd1ee9baa6e5700ceeecf801acf62696e8228.tar.gz
txr-686fd1ee9baa6e5700ceeecf801acf62696e8228.tar.bz2
txr-686fd1ee9baa6e5700ceeecf801acf62696e8228.zip
add-mp-set-intptr patch
* mpi/mpi.c (mp_set_intptr, mp_get_intptr): New functions. * mpi/mpi.h (mp_set_intptr, mp_get_intptr): Declared.
Diffstat (limited to 'mpi/mpi.h')
-rw-r--r--mpi/mpi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mpi/mpi.h b/mpi/mpi.h
index c87df54b..c653672e 100644
--- a/mpi/mpi.h
+++ b/mpi/mpi.h
@@ -94,6 +94,8 @@ void mp_clear_array(mp_int mp[], int count);
void mp_zero(mp_int *mp);
void mp_set(mp_int *mp, mp_digit d);
mp_err mp_set_int(mp_int *mp, long z);
+mp_err mp_set_intptr(mp_int *mp, int_ptr_t z);
+mp_err mp_get_intptr(mp_int *mp, int_ptr_t *z);
/*------------------------------------------------------------------------*/
/* Single digit arithmetic */