PDA

View Full Version : 128 integer arithmetic


DirkStarscream
06-24-2005, 05:23 PM
I am currently working on a couple of assemblers, one for intel/amd processors and one for powerpc processors. So far I have implemented the ability to do 128 bit integer arithmetic across 64 bit registers on the 64bit versions. Thing is, its taking up a fair chunk of space, so I was wondering, does anyone actually bother using 128 bit integer arithmetic? If so I guess I will have to leave it in, but otherwise I can save myself a headache and scrap it
thanks

CronoMan
07-18-2005, 08:21 AM
try using the MMX registers http://forums.3drealms.com/ubbthreads/images/graemlins/smile.gif

Drazula
08-17-2005, 04:08 PM
Yes, graphical calculations that propagate rounding errors would use 128 bit arithmetic to keep the rounding errors small.

MentalSentinel
08-19-2005, 04:05 AM
Just what the hell is 128 bit Arithmetic? http://forums.3drealms.com/ubbthreads/images/graemlins/confused.gif

DirkStarscream
08-19-2005, 08:01 AM
128 bit integer arithmetic is simply arithmetic that uses 128bit wide operands, presumably across 2 64bit registers. 386+ processors in 32bit mode would allow 64bit integer arithmetic across 2 32bit registers. the AMD64 processors would allow easy 128bit arithmetic across 2 64bit registers. Needless to say, 256bit arithmetic would require an integer to be stored across 4 64bit registers.

DudeMiester
08-23-2005, 10:56 PM
Drazula said:
Yes, graphical calculations that propagate rounding errors would use 128 bit arithmetic to keep the rounding errors small.



But that would likely only be floating point numbers. I don't know of any needs for 128 bit integer arithmatic, not that there arn't any.

Drazula
08-24-2005, 07:53 AM
No one uses fixed point arithmetic anymore?

DudeMiester
08-24-2005, 03:42 PM
I'm sure they do, but I'm also sure they use floating point much more often.

MentalSentinel
08-28-2005, 10:39 AM
DudeMiester and Drazula, where the hell did you learn such things? http://forums.3drealms.com/ubbthreads/images/graemlins/tinyted.gif

Drazula
08-28-2005, 12:46 PM
Any software texture mapping, Coding articles by Michael Abrash, Doom Source, etc http://forums.3drealms.com/ubbthreads/images/graemlins/smile.gif.

DudeMiester
08-28-2005, 02:08 PM
MentalSentinel said:
DudeMiester and Drazula, where the hell did you learn such things? http://forums.3drealms.com/ubbthreads/images/graemlins/tinyted.gif



http://steamsteamlol.ytmnd.com/

I'm not kidding.

Jaapio
09-12-2005, 03:07 PM
DudeMiester said:

Drazula said:
Yes, graphical calculations that propagate rounding errors would use 128 bit arithmetic to keep the rounding errors small.



But that would likely only be floating point numbers. I don't know of any needs for 128 bit integer arithmatic, not that there arn't any.



If someone wants to use a smaller version of something they can cast I with short, if im correct.