Article View: pl.comp.lang.c
Article #309672Int 256 bitowy jako strumień bitów (32 bajtów)
From: Borneq
Date: Mon, 30 Apr 2018 16:59
Date: Mon, 30 Apr 2018 16:59
9 lines
1351 bytes
1351 bytes
W Boost jest boost::multiprecision::cpp_int number co pozwala na dowolną precyzję, na razie planuję trzymać je w bazie HBase jako ciąg hex co mi 2-krotnie zajmuje miejsce a poza tym co jeszcze gorsze, konwersja hex<->liczba trwa długo A chcę zapisać tę liczbę binarnie. Jakiej liczby użyć, by precyzja była stała 256 bitów i abym mógł rzutować to jako ciąg 32 bajtów? By były operacje , plus, minus, razy, podzielić, nic specjalnie inne nie trzeba.
Technical Details
Message-ID:
<pc7i0q$as1$1@node2.news.atman.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: Borneq <borneq@antyspam.hidden.pl> Newsgroups: pl.comp.lang.c Subject: Int 256 bitowy jako strumień bitów (32 bajtów) Date: Mon, 30 Apr 2018 18:59:05 +0200 Organization: ATMAN - ATM S.A. Lines: 9 Message-ID: <pc7i0q$as1$1@node2.news.atman.pl> NNTP-Posting-Host: public-gprs360335.centertel.pl Mime-Version: 1.0 X-Trace: node2.news.atman.pl 1525107546 11137 37.47.38.208 (30 Apr 2018 16:59:06 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Mon, 30 Apr 2018 16:59:06 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 X-Mozilla-News-Host: news://news.atman.pl:119 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit