summaryrefslogtreecommitdiff
blob: 0bcfffc08176caea4ecba119c7d82fb6902849ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Index: src/kernel/gmp/mp.c
===================================================================
--- src/kernel/gmp/mp.c	(revision 13151)
+++ src/kernel/gmp/mp.c	(working copy)
@@ -45,18 +45,8 @@
 /*We need PARI invmod renamed to invmod_pari*/
 #define INVMOD_PARI
 
-static void *gmp_realloc(void *ptr, size_t old_size, size_t new_size) {
-  (void)old_size; return (void *) pari_realloc(ptr,new_size);
-}
-
-static void gmp_free(void *ptr, size_t old_size){
-  (void)old_size; pari_free(ptr);
-}
-
 int pari_kernel_init(void)
 {
-  /* Use pari_malloc instead of malloc */
-  mp_set_memory_functions((void *(*)(size_t)) pari_malloc, gmp_realloc, gmp_free);
   return 0;
 }