Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly 370 > Re: S/360 HER, ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 16 Topic 262 of 331
Post > Topic >>

Re: S/360 HER, HDR

by glen herrmannsfeldt <gah@[EMAIL PROTECTED] > Jan 4, 2006 at 02:11 AM

robin wrote:

> "glen herrmannsfeldt" <gah@[EMAIL PROTECTED]
> wrote in message
> news:CZSdnfkDXvuBFyTeRVn-tg@[EMAIL PROTECTED]
(snip regarding HER, HDR, and the lack of normalization in the early
versions of S/360.)

>>>Except, of course, initially for HER and HDR.  
 >> The 1964 Principles of Operation makes this clear.

(snip)

>>Well, one could always add zero, still probably faster than divide,

> Definitely faster than divide, but that took an extra instruction (4
bytes)
> and possibly an extra constant (4 or 8 bytes) when there was precious
> little store to hold the extras.
> The real problem with HER and HDR, however, with the unnormalized
> version was the loss of precision if the most-significant nibble ws 1.

In sqrt you can likely live with that until the last iteration.

With the common implementation for binary machines, you lose, anyway.
For S/360 the last iteration is done something like:

y4=y3+(x/y3-y3)/2

this is required for full precision HFP arithmetic, even with a
normalizing HDR.

(x/y3-y3) normally won't have many significant bits, so there is probably
no loss in the non-normalizing HDR.

It is also fairly common to do the initial approximation in fixed point.
If one really wanted to, one could test the exponent bits prior to the 
HDR at the end.

-- glen

     DE      FR0,BUFF        GIVE TWO P***** OF NEWTON-RAPHSON
     AU      FR0,BUFF          ITERATION
     HER     FR0,FR0
     DER     FR2,FR0         (X/Y1+Y1)/2 = (Y1-X/Y1)/2+X/Y1 TO GUARD
     AU      FR0,ROUND         LAST DIGIT-.  ADD ROUNDING FUDGE
     SER     FR0,FR2
     HER     FR0,FR0
     AER     FR0,FR2
 




 16 Posts in Topic:
Re: S/360
"robin" <rob  2005-12-20 03:51:25 
Re: S/360
glen herrmannsfeldt <g  2005-12-20 00:43:30 
Re: S/360
"John W. Kennedy&quo  2005-12-20 10:08:37 
Re: S/360
"James J. Weinkam&qu  2005-12-20 21:46:26 
Re: S/360
Peter Flass <Peter_Fla  2005-12-21 00:53:26 
Re: S/360
"James J. Weinkam&qu  2005-12-21 07:42:47 
Re: S/360
glen herrmannsfeldt <g  2005-12-20 21:46:21 
Re: S/360
"robin" <rob  2005-12-31 07:39:09 
Re: S/360
glen herrmannsfeldt <g  2006-01-02 12:16:22 
Re: S/360 HER, HDR
"robin" <rob  2006-01-03 01:56:13 
Re: S/360 HER, HDR
glen herrmannsfeldt <g  2006-01-04 02:11:31 
Re: S/360 HER, HDR
"robin" <rob  2006-01-04 15:45:54 
Re: S/360 HER, HDR
glen herrmannsfeldt <g  2006-01-05 00:41:33 
Re: S/360 HER, HDR
"robin" <rob  2006-01-06 00:04:42 
Re: S/360
"John W. Kennedy&quo  2005-12-20 10:08:04 
Re: S/360
"robin" <rob  2005-12-21 07:10:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 7 12:43:55 CDT 2008.