On Monday, January 14, 2013 4:44:44 PM UTC-5, Cactus wrote:
> On Monday, 14 January 2013 18:37:16 UTC, MJ Michaels  wrote:
> Is it possible to configure the VC10 build in MPIR 2.6.0 to generate 64-bit 
> limbs?  I am able to do this, but have to edit mpir.h by hand to get it to 
> work, and I'm wondering if there's just some build option that I'm missing.  
> I basically just remove references to "#ifdef _WIN64".  Is there a reason why 
> this is a bad idea?
> Thanks in advance.
> Mj Michaels
> 
> 
> Unfortunately there is no standard Visual Studio build that does what you 
> want.   As you found, MPIR on Windows is set up to use 32-bit limbs on win32 
> and 64-bit limbs on x64.
> 
> 
> Using 64-bit limbs on win32 is likely to work for the generic C version of 
> MPIR but it will fail for all the assembler based builds since all the x86 
> assembler code assumes that limbs are 32-bits.
> 
> 
> So its certainly not a good idea unless you limit yourself to the generic C 
> build.  And here, of course, you are on your own since it is not a tested 
> configuration.
> 
> 
>        Brian

Thanks for the answer Brian.  My problem is that I have code on all other 
platforms that passes an int64 to mpz_set_ui(), but on Windows this doesn't 
work.   I could fix this by turning the int64 into two int32's and calling 
mpz_set_ui() appropriately with those values.  Or I can use the generic C build 
with 64-bit limbs.  Do you have thoughts about which is the better approach? 
Thanks.
Mj

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/mpir-devel/-/l5B7gnmpgQQJ.
To post to this group, send email to mpir-devel@googlegroups.com.
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.

Reply via email to