COMP.ARCH---------------- < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 58 из 100
 От   : Anton Ertl                          2:5075/128        29 сен 23 08:28:25
 К    : John Levine                                           29 сен 23 11:51:02
 Тема : Re: data sizes, Solving the Floating-Point Conundrum
----------------------------------------------------------------------------------
                                                                                 
@MSGID: <2023Sep29.102825@mips.complang.tuwien.ac.at>
b081b257
@REPLY: 2@gal.iecc.com> 3d6df4d8
@REPLYADDR Anton Ertl
<anton@mips.complang.tuwien.ac.at>
@REPLYTO 2:5075/128 Anton Ertl
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
<2023Sep29.102825@mips.complang.tuwien.ac.at>
@RFC-References:
<57c5e077-ac71-486c-8afa-edd6802cf6b1n@googlegroups.com> <000949fe-1639-41b3-ae9e-764cdf6c9b4bn@googlegroups.com>
1@gal.iecc.com> <2023Sep23.123024@mips.complang.tuwien.ac.at>
2@gal.iecc.com>
@TZUTC: 0000
@TID: FIDOGATE-5.12-ge4e8b94
John Levine <johnl@taugh.com> writes:
>According to Anton Ertl <anton@mips.complang.tuwien.ac.at>:
>>John Levine <johnl@taugh.com> writes:
>>>But on z/Series they do indeed have packed decimal vector instructions
>>>using the 128 bit vector registers as 31 digits and a sign. There is
>>>also decimal floating point
>>
>>Decimal floating-point hardware seems to be a marketing feature to me.
>>Is there any real-world application that uses that?  
>
>My impression is that there aren`t a lot of people who want it, but
>for the ones who do, they want it very much to do their financial
>calculations.
>
>Like I said a few minutes ago, there are decimal financial formulae
>developed long ago for bond pricing and related time and interest
>calculations. Since there are literaly trillions of dollars of
>financial instruments priced and sold this way, I can see that for
>some customers it would be worth a lot to have decimal arithmetic that
>could implement this directly with well defined decimal rounding at
>each step to make it easier to write correct code.

Decimal arithmetic yes, decimal floating point no.  As you write,
these financial formulas were developed before computers, and long
before decimal FP in computers, so they do not use decimal FP; they
use decimal fixed-point.

Decimal fixed point with typical rounding algorithms is
straightforward and not particularly slow to implement with binary
integer arithmetics, and that`s why decimal stuff has been
deemphasized in most architectures.

But I can see how a sleek salesman can convince a gullible (or
corrupt) member of upper management that they absolutely need to have
decimal FP in their hardware for the correctness of their financial
calculations.  And when someone in the know from the victim company
speaks up and threatens to undermine this common understanding, they
get hushed (I have recently heard a similar story, not about DFP, but
about some other pointless selling feature).

- anton
-- 
`Anyone trying for "industrial quality" ISA should avoid undefined behavior.`
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
--- xrn 10.11
 * Origin: Institut fuer Computersprachen, Technische Universitaet (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх