quad-precision_20multiplication
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
quad-precision_20multiplication [2018/03/31 13:19] – external edit 127.0.0.1 | quad-precision_20multiplication [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
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:// | + | //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:// |
+ | |||
+ | <code bb4w> | ||
INSTALL @lib$+" | INSTALL @lib$+" | ||
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. |
quad-precision_20multiplication.1522502375.txt.gz · Last modified: 2024/01/05 00:16 (external edit)