Date: Thu, 5 Jul 2018 16:06:07 +0930 From: Shane Ambler <FreeBSD@ShaneWare.Biz> To: Antonio Olivares <olivares14031@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Clang++ stdlib/cstdlib.h workaround Message-ID: <2b656396-f201-3abe-0bbe-d9a127ae5d39@ShaneWare.Biz> In-Reply-To: <CAJ5UdcM7yhBUdPu7fgDazZmXCU3RKVBDz3TkW8s9SgLAPY9SOA@mail.gmail.com> References: <CAJ5UdcP-Hpa%2BYqAkwkrv4ec_mV=CaTzDo%2BkCAADd-JKb25OdeQ@mail.gmail.com> <f907f846-f607-40a1-c925-c04d1569ac47@ShaneWare.Biz> <CAJ5UdcM7yhBUdPu7fgDazZmXCU3RKVBDz3TkW8s9SgLAPY9SOA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 04/07/2018 22:00, Antonio Olivares wrote: > About the big number, it would be nice to get it working for bigger > numbers, but I would need to run it on amd64 freebsd machine at work. > Maybe at some other time we can revisit this issue. Thank you for your > assistance. You don't need a 64bit machine to use 64bit ints but you do need to use a recent C/C++ standard, long long was introduced in C99 and C++11. That is, if you have an issue with long long add -std=c++11 to your CXXFLAGS. https://en.wikipedia.org/wiki/Integer_(computer_science)#Long_long There is also a long double https://en.wikipedia.org/wiki/Long_double Try it - #include <stdio.h> int main() { printf("sizeof long long - %lu\n",sizeof(long long)); printf("sizeof long double - %lu\n",sizeof(long double)); return 0; } -- FreeBSD - the place to B...Software Developing Shane Ambler
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2b656396-f201-3abe-0bbe-d9a127ae5d39>