Questions tagged [mpir]

MPIR (Multiple Precision Integers and Rationals) is an open source multiprecision integer (bignum) library forked from the GMP (GNU Multi Precision) project. It consists of much code from past GMP releases, in combination with much original contributed code. The basic interface is for C, but it also provides a C++ wrapper.

MPIR (Multiple Precision Integers and Rationals) is an open source multi-precision integer (bignum) library forked from the GMP (GNU Multi Precision) project. It consists of much code from past GMP releases, in combination with much original contributed code.

The basic interface is for C, but it also provides a C++ wrapper. The authors have, so far, preserved backwards compatibility with the GMP library.

38 questions
0
votes
0 answers

Visual Studio Error 2784 : could not deduce template argument for GMP from FLINT

I have a problem running the source code of "homomorphic Simon encryption using YASHE and FV leveled homomorphic cryptosystems" (https://github.com/tlepoint/homomorphic-simon) in Visual Studio 2012. I'm using FLINT 2.5.2, MPIR 2.7.2, MPFR 1.3.1…
0
votes
2 answers

MPIR gcc compilation - cannot find -lmpir

I am trying to compile a simple C program using GCC with MPIR under MinGW on my Windows 7 machine. I installed MPIR successfully (I guess) with configure, make, make check and make install (did not use "sudo" - what is this?). The program is called…
Futurist
  • 75
  • 1
  • 8
0
votes
1 answer

Trouble using mpir_ui type in my code

I wanted to use this function int mpz_cmp_ui (mpz t_op1, mpir_ui op2) For that I have to supply mpir_ui so whenever I try to declare this , mpir_ui myui; it says: Error: identifier mpir_ui is undefined Am I missing any header file? All…
user3891236
  • 607
  • 1
  • 9
  • 23
0
votes
1 answer

Automated way to install vsyasm

I'm trying to create an automated way to build mpir on Windows with Microsoft C++. One required step seems to be to install vsyasm, so my current mini-project is to create an automated way to do that, i.e. something that can be done by a batch file…
rwallace
  • 31,405
  • 40
  • 123
  • 242
0
votes
1 answer

Square root finder (uses mpir, written in c++) is failing with multiple lnk2019 compile-time linker errors when compiled in x64

Lately, I've been doing high-precision number crunching in c++. I've been creating a program to calculate the square root of two using the gmp (gnu multiple precision) fork mpir (multiple precision integers and rationals). When I compile the program…
-1
votes
2 answers

Running a python script to configure mpir for windows, visual studio 2017 and c++17

I'm extremely new to python, I've just got it set up on Visual Studio 2017CE version 15.6.6 on Windows 7 SP1 x64 Home Premium. I went through a couple of walk through tutorials and can verify that at the least Python is installed and working. I'm…
Francis Cugler
  • 7,788
  • 2
  • 28
  • 59
-1
votes
1 answer

i need to take an mpir integer and output it into a char buffer

i have recently installed mpir and have the following code (c++) visual studio. char buffer[100] mpz_t x; mpz_set_str(x, "7612058254738945", 10); I would like to print x into the buffer. used to use sprint but there does not seem to be any sprint…
david
  • 11
  • 1
-2
votes
1 answer

C++ MPIR: Looking for example usage for mpz_sizeinbase();

This is the first time I am using MPIR library. I have to do some calculations on bigintegers. Actually those numbers can have a maximum of 2048 bits. The first task I have to implement is to find the total number of bits in teh entered decimal…
user3891236
  • 607
  • 1
  • 9
  • 23
1 2
3