Re: Decimal Floating Point (was Re: why still use C?)
glen herrmannsfeldt wrote:[color=blue]
> CBFalconer wrote:[color=green]
> > glen herrmannsfeldt wrote:[/color]
>
> (snip of base 1000 representation of decimal floating point)
>[color=green][color=darkred]
> >>The normalization is done in uncompressed (BCD) form, and then
> >>they are converted to the base 1000 form for storage.[/color][/color]
>[color=green]
> > If you have ever designed a floating point package you will
> > realize that normalization takes up the majority of the time. It
> > needs to be simple, not a major base conversion.[/color]
>[color=green]
> > Any reasonable form of decimal FP will be based on some flavor of
> > bcd, possibly 8421, or excess 3, or 2*421, or even bi-quinary.[/color]
>
> I haven't actually checked, but rumors are that it only takes a
> few gates to convert between the base 1000 representation, and
> BCD. It can be done while loading into registers, or even
> as part of the ALU, itself.[/color]
If you show me (in detail) I will believe you. Not before.
--
Chuck F (cbfalconer@yah oo.com) (cbfalconer@wor ldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net> USE worldnet address!
--
comp.lang.c.mod erated - moderation address: clcm@plethora.n et
glen herrmannsfeldt wrote:[color=blue]
> CBFalconer wrote:[color=green]
> > glen herrmannsfeldt wrote:[/color]
>
> (snip of base 1000 representation of decimal floating point)
>[color=green][color=darkred]
> >>The normalization is done in uncompressed (BCD) form, and then
> >>they are converted to the base 1000 form for storage.[/color][/color]
>[color=green]
> > If you have ever designed a floating point package you will
> > realize that normalization takes up the majority of the time. It
> > needs to be simple, not a major base conversion.[/color]
>[color=green]
> > Any reasonable form of decimal FP will be based on some flavor of
> > bcd, possibly 8421, or excess 3, or 2*421, or even bi-quinary.[/color]
>
> I haven't actually checked, but rumors are that it only takes a
> few gates to convert between the base 1000 representation, and
> BCD. It can be done while loading into registers, or even
> as part of the ALU, itself.[/color]
If you show me (in detail) I will believe you. Not before.
--
Chuck F (cbfalconer@yah oo.com) (cbfalconer@wor ldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net> USE worldnet address!
--
comp.lang.c.mod erated - moderation address: clcm@plethora.n et
Comment