News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Densely packed decimal

Started by Magnum, December 19, 2013, 10:06:24 AM

Previous topic - Next topic

Magnum

Has someone wrote code that uses densely packed decimals?

From what I understand, it is more efficient than BCD.

Thanks.
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

"densely" ?

Ray did some work with packed decimals on his FPU site

http://www.ray.masmcode.com/BCDtut.html

also - the FPU can access packed BCD

http://www.ray.masmcode.com/tutorial/fpuchap6.htm

Magnum

http://en.wikipedia.org/wiki/Densely_packed_decimal

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

#3
i don't see much advantage there
if you need to do that - convert to binary integer - calculate - convert back to decimal

you can fit 9 full decimal digits in a dword   :t

Stan

When densely packing digits was implemented, 'core' memory was expensive.  Thus, it was economically beneficial to unpack/calculate/pack.
Today, with memory being rather cheap,
QuoteI don't see much advantage there