Re: Support for 128-bit arithmetic - was: Re: PL/I support of vector instructions?

2020-09-12 Thread Thomas David Rivers
Paul Gilmartin wrote: On Sat, 12 Sep 2020 07:35:00 -0400, Thomas David Rivers wrote: ADD UNSIGNED doesn't trigger the FIXED OVERFLOW exception, while SIGNED operations do. Since C doesn't want FIXED OVERFLOW exceptions, (almost) all of the arithmetic calculations should be done with unsigne

Re: Support for 128-bit arithmetic - was: Re: PL/I support of vector instructions?

2020-09-12 Thread Paul Gilmartin
On Sat, 12 Sep 2020 07:35:00 -0400, Thomas David Rivers wrote: > > ADD UNSIGNED doesn't trigger the FIXED OVERFLOW exception, while > SIGNED operations do. Since C doesn't want FIXED OVERFLOW exceptions, > (almost) all of the arithmetic calculations should be done with unsigned > arithmetic in ca

Re: Support for 128-bit arithmetic - was: Re: PL/I support of vector instructions?

2020-09-12 Thread Thomas David Rivers
On Fri, Sep 11, 2020 at 10:56:00PM -0300, Clark Morris wrote: > [Default] On Wed, 09 Sep 2020 20:35:48 -0400, in bit.listserv.ibm-main > Thomas David Rivers wrote: > > >> snip > The way I read the code it is adding unsigned integers since only ADD > LOGICAL instructions are used. Handling number

Re: Support for 128-bit arithmetic - was: Re: PL/I support of vector instructions?

2020-09-11 Thread Thomas David Rivers
Paul Gilmartin wrote: On Thu, 10 Sep 2020 15:35:37 +, Seymour J Metz wrote: Yes, you can always do multiple precision that way, but there is a performance hit, especially from those conditional branches. Maybe we need skip instructions such as the 7090 had. Some computer archit

Re: Support for 128-bit arithmetic - was: Re: PL/I support of vector instructions?

2020-09-10 Thread Paul Gilmartin
On Thu, 10 Sep 2020 15:35:37 +, Seymour J Metz wrote: >Yes, you can always do multiple precision that way, but there is a performance >hit, especially from those conditional branches. Maybe we need skip >instructions such as the 7090 had. Some computer architectures have an Add-With-Carry i

Re: Support for 128-bit arithmetic - was: Re: PL/I support of vector instructions?

2020-09-10 Thread Seymour J Metz
Mainframe Discussion List on behalf of Thomas David Rivers Sent: Wednesday, September 9, 2020 8:35 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Support for 128-bit arithmetic - was: Re: PL/I support of vector instructions? Seymour J Metz wrote: >I was asking whether it supported vector instructi

Support for 128-bit arithmetic - was: Re: PL/I support of vector instructions?

2020-09-09 Thread Thomas David Rivers
Seymour J Metz wrote: I was asking whether it supported vector instructions for FIXED, not for FLOAT.; in particular, whether it supported FIXED BIN(127,0). -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 You would not need vector instructions to support FIXED BIN(127,s) (quad-w