{"id":280,"date":"2018-01-14T19:30:05","date_gmt":"2018-01-14T19:30:05","guid":{"rendered":"http:\/\/fpganow.com\/?p=280"},"modified":"2018-01-14T19:30:33","modified_gmt":"2018-01-14T19:30:33","slug":"how-to-multiply-64-bit-numbers-in-labview","status":"publish","type":"post","link":"https:\/\/fpganow.com\/index.php\/2018\/01\/14\/how-to-multiply-64-bit-numbers-in-labview\/","title":{"rendered":"How to Multiply 64 bit Numbers in LabVIEW"},"content":{"rendered":"<p>What is the product of\u00a00x9D0BF6FDAC70AB52 and 0x6408F6540A1384CB?\u00a0 Well, according to LabVIEW for Windows, the answer is 0x2D90DE07C0C42206.\u00a0 According to C++ on OSX (without any optimizations, usage of Intel Intrinsic functions), the answer is also\u00a00x2D90DE07C0C42206.<\/p>\n<p>The real answer is&#8230;\u00a0 0x3D5E2BF7DCBCA6622D90DE07C0C42206.<\/p>\n<p>How do you get this number? You have to use compiler intrinsics, or calculate this value yourself.\u00a0 LabVIEW does not make it easy to call an Intel Compiler intrinsic, so I took it upon myself to implement this myself.\u00a0 Here is a screenshot of the implementation in LabVIEW for Windows:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/JohnStratoudakis\/CryptoCurrencies\/master\/Monero\/lv-monero\/CryptoNight-Step-3\/Host-Implementation\/Step-3-Multiply-U64d.png\" \/><\/p>\n<p>To download and use this code in your project, see:<\/p>\n<p><a href=\"https:\/\/github.com\/JohnStratoudakis\/CryptoCurrencies\/blob\/master\/Monero\/lv-monero\/CryptoNight-Step-3\/Host-Implementation\/Step-3-Multiply-U64.vi\">https:\/\/github.com\/JohnStratoudakis\/CryptoCurrencies\/blob\/master\/Monero\/lv-monero\/CryptoNight-Step-3\/Host-Implementation\/Step-3-Multiply-U64.vi<\/a><\/p>\n<p><strong><span style=\"text-decoration: underline;\">Note:<\/span><\/strong> FPGA version is coming soon, but I am busy working on something else right now<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is the product of\u00a00x9D0BF6FDAC70AB52 and 0x6408F6540A1384CB?\u00a0 Well, according to LabVIEW for Windows, the answer is 0x2D90DE07C0C42206.\u00a0 According to C++ on OSX (without any optimizations, usage of Intel Intrinsic functions), the answer is also\u00a00x2D90DE07C0C42206. The real answer is&#8230;\u00a0 0x3D5E2BF7DCBCA6622D90DE07C0C42206. How do you get this number? You have to use compiler intrinsics, or calculate this value &#8230; <a title=\"How to Multiply 64 bit Numbers in LabVIEW\" class=\"read-more\" href=\"https:\/\/fpganow.com\/index.php\/2018\/01\/14\/how-to-multiply-64-bit-numbers-in-labview\/\" aria-label=\"Read more about How to Multiply 64 bit Numbers in LabVIEW\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-280","post","type-post","status-publish","format-standard","hentry","category-uncategorized","masonry-post","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/posts\/280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/comments?post=280"}],"version-history":[{"count":3,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/posts\/280\/revisions"}],"predecessor-version":[{"id":286,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/posts\/280\/revisions\/286"}],"wp:attachment":[{"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/media?parent=280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/categories?post=280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/tags?post=280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}