Dec 062017
64-bit artithmetic, ASM source included.
File QMATH0.ZIP from The Programmer’s Corner in
Category Assembly Language
64-bit artithmetic, ASM source included.
File Name File Size Zip Size Zip Type
QUAD.ASM 12508 2093 deflated
QUAD3-16.ASM 5887 1123 deflated
QUAD3-32.ASM 5627 1034 deflated
README 714 372 deflated
TPCREAD.ME 199 165 deflated

Download File QMATH0.ZIP Here

Contents of the README file

Fast 64-bit Signed Integer Arithmetic Routines

QUAD.ASM for XT and AT
QUAD3-16.ASM for 386 and higher in 16-bit mode
QUAD3-32.ASM for 386 and higher in 32-bit mode


These routines preserve only registers SI and DI (QUAD.ASM and
QUAD3-16.ASM) or ESI and EDI (QUAD3-32.ASM). If you compiler requires
that other registers are also preserved then change the source
accordingly. (For example, in the x-model of Zortech C++ EBX must also
be preserved.)

You cannot change this signed divide routine to unsigned divide simply
by ignoring the sign. If you require an unsigned divide then ask me.

Roger Moser (Compuserve 100111,762)

 December 6, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>