[ntl] NTL RR class and long long integer

Friedrich Wiemer friedrichwiemer at gmail.com
Thu Jul 9 16:42:14 CDT 2015


I can't believe there are no 64bit ints until c++11 on windows. Isn't long already 64bit on some x86 machines? ("some machines" still might not solve the issue) 

On July 9, 2015 11:38:32 PM CEST, Victor Shoup <shoup at cs.nyu.edu> wrote:
>A followup: "long long" is only a part of the language standard
>since C++11.  So I guess before C++11, there was no standard
>way to get at 64-bit integers on Windoze. Anyway, now that it is 
>a part of the standard, it would be reasonable to contemplate
>making such conversion operators.  But they would only be useful
>for Windoze platforms, and that is a low priority.
>Plus, one would have to provide legacy switches so that
>one could get rid of these on platforms that have not yet
>implemented the C++11 standard.
>
>
>On Jul 9, 2015, at 5:32 PM, Friedrich Wiemer wrote:
>
>> But you can convert to "standard" c++ types like int64_t or similar
>for sure! Maybe the are named similar on windows, but uint64_t,
>int64_t, etc. should be defined in stdint.h if I remember correctly. 
>> You can than use normal c++ type conversions. 
>> 
>> On July 9, 2015 11:30:21 PM CEST, Luigi Candurro
><luigicandurro at virgilio.it> wrote:
>> Il 09/07/2015 23:14, Friedrich Wiemer ha scritto:
>>  Hi Luigi,
>> 
>>  did you try to convert RR to ZZ and then to int64?
>>  ZZ is NTLs multiprecision integer type, while RR is for
>multiprecision 
>>  floats.
>> 
>>  Cheers, Friedrich
>> 
>> Hi, Friedrich,
>> 
>> unfortunately ZZ.h does not contain conversion definitions from ZZ to
>
>> __int64 type.
>> 
>> Thanks anyway
>> 
>> Luigi
>> 
>> 
>> 
>> ntl mailing list
>> ntl at shoup.net
>> http://shoup.net/mailman/listinfo/ntl_shoup.net
>> 
>> -- 
>> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
>gesendet.
>> _______________________________________________
>> ntl mailing list
>> ntl at shoup.net
>> http://shoup.net/mailman/listinfo/ntl_shoup.net

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shoup.net/pipermail/ntl_shoup.net/attachments/20150709/e64ac8e7/attachment-0001.html>


More information about the ntl mailing list