User Tools

Site Tools


quad-precision_20multiplication

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

quad-precision_20multiplication [2018/03/31 13:19]
127.0.0.1 external edit
quad-precision_20multiplication [2018/04/13 10:53] (current)
richardrussell
Line 1: Line 1:
 =====Quad-precision multiplication===== =====Quad-precision multiplication=====
  
-//by Richard Russell, December 2014//\\ \\  The program listed below illustrates how to multiply two (unsigned) 64-bit integers together to produce a 128-bit result. It is based on a [[http://​blogs.msdn.com/​b/​oldnewthing/​archive/​2014/​12/​08/​10578956.aspx|blog post]] by Raymond Chen:\\ \\ +//by Richard Russell, December 2014//\\ \\  The program listed below illustrates how to multiply two (unsigned) 64-bit integers together to produce a 128-bit result. It is based on a [[http://​blogs.msdn.com/​b/​oldnewthing/​archive/​2014/​12/​08/​10578956.aspx|blog post]] by Raymond Chen: 
 + 
 +<code bb4w>  ​
         INSTALL @lib$+"​ASMLIB2"​         INSTALL @lib$+"​ASMLIB2"​
  
Line 45: Line 47:
         CALL mul         CALL mul
         PRINT ~result!12, ~result!8, ~result!4, ~result!0         PRINT ~result!12, ~result!8, ~result!4, ~result!0
-\\  ​Note that if you want to incorporate this code in a compiled program it will be necessary to put it in a separate file which you INSTALL or CALL at run-time, and that file should have an extension **other than** .BBC.+</​code>​ 
 + 
 +Note that if you want to incorporate this code in a compiled program it will be necessary to put it in a separate file which you INSTALL or CALL at run-time, and that file should have an extension **other than** .BBC.
quad-precision_20multiplication.txt · Last modified: 2018/04/13 10:53 by richardrussell