flat assembler
Message board for the users of flat assembler.
Index
> Main > Optimization, MUL & DIV help needed |
Author |
|
beppe85 27 Dec 2004, 07:53
Search for AMD's optimization manual.
UPDATE: The file I have is named 22007.pdf, but I guess there's a newer version of it with a different name. Title: "AMD Athlonâ„¢ Processor - x86 Code Optimization Guide". I could post the (small) code here, but you'll appreciate read the manual. Last edited by beppe85 on 27 Dec 2004, 20:37; edited 1 time in total |
|||
27 Dec 2004, 07:53 |
|
Matrix 27 Dec 2004, 11:50
howdy r22
its a problem , because you cannot always replace a mul by shl and add in the way you wanna. you can use this optimization only if you are multiplying by the same number, ex.: 10, or 320 |
|||
27 Dec 2004, 11:50 |
|
roticv 27 Dec 2004, 12:28
The Svin's magic divider will convert div to mul and shifts. Source code included.
|
|||
27 Dec 2004, 12:28 |
|
Madis731 28 Dec 2004, 10:12
You should check that site I have as a signature.
It is NOT in vain my idol direct link to MUL: http://www.azillionmonkeys.com/qed/amult.html ---and DIV: http://www.azillionmonkeys.com/qed/adiv.html P.S. you might have interest in SQRT too: http://www.azillionmonkeys.com/qed/sqroot.html |
|||
28 Dec 2004, 10:12 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.