Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #3379
| Path | csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end |
|---|---|
| From | gah4 <gah4@u.washington.edu> |
| Newsgroups | comp.compilers |
| Subject | Re: C arithmetic, was Software proofs, was Are there different |
| Date | Fri, 10 Feb 2023 23:47:40 -0800 (PST) |
| Organization | Compilers Central |
| Sender | johnl@iecc.com |
| Approved | comp.compilers@iecc.com |
| Message-ID | <23-02-038@comp.compilers> (permalink) |
| References | <23-01-092@comp.compilers> <23-02-003@comp.compilers> <23-02-019@comp.compilers> <23-02-025@comp.compilers> <23-02-026@comp.compilers> <23-02-029@comp.compilers> <23-02-033@comp.compilers> <23-02-037@comp.compilers> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Injection-Info | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="18810"; mail-complaints-to="abuse@iecc.com" |
| Keywords | arithmetic, comment |
| Posted-Date | 11 Feb 2023 15:02:38 EST |
| X-submission-address | compilers@iecc.com |
| X-moderator-address | compilers-request@iecc.com |
| X-FAQ-and-archives | http://compilers.iecc.com |
| In-Reply-To | <23-02-037@comp.compilers> |
| Xref | csiph.com comp.compilers:3379 |
Show key headers only | View raw
On Friday, February 10, 2023 at 10:18:49 AM UTC-8, Hans-Peter Diettrich wrote: (snip) > Please explain the provenience or purpose of that hidden bit with > integral numbers. How can integral values be *normalized* so that a > previously required bit can be hidden? Sign extension to a higher number > of bits does not increase the value or accuracy of an integral number. > [He said "mantissa", so it's floating point. I've certainly seen scaled > integer arithmetic, but normalized integers other than +/- zero in systems > with signed zeros seems unlikely. -John] Normalized binary floating point, with hidden one, is pretty common. I knew IBM S/360 floating point for some years before learning about those, and it seemed surprising at the time. As for integers, though, there are some processors with a floating point format that does not left normalize values. Some CDC processors, if the value can be shifted, normalized, as an integer value without losing bits on either end, choose that. Even more, the exponent is zero for that case. I think some Burroughs processors also do that. The result of doing that is that, for values in the appropriate range, the floating point instructions work for integer values. No instructions are needed to convert (in range) integers to floating point. There is so much fun history to the different floating point formats used over the years. Now almost forgotten. [I am not aware of any hidden bit formats before IEEE but the 704 manual noted that normalized mantissas always have a 1 in the high bit so it wasn't a big leap. -John]
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar
Re: Are there different programming languages that are compiled to the same intermediate language? Martin Ward <mwardgkc@gmail.com> - 2023-01-31 14:04 +0000
Re: Are there different programming languages that are compiled to the same intermediate language? arnold@freefriends.org (Aharon Robbins) - 2023-02-01 08:07 +0000
Re: Software proofs, was Are there different programming languages that are compiled to the same intermediate language? Spiros Bousbouras <spibou@gmail.com> - 2023-02-05 15:14 +0000
Re: C arithmetic, was Software proofs, was Are there different Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2023-02-05 16:14 -0800
Re: C arithmetic, was Software proofs, was Are there different gah4 <gah4@u.washington.edu> - 2023-02-06 13:26 -0800
Re: C arithmetic, was Software proofs, was Are there different Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2023-02-07 14:31 +0100
Re: C arithmetic, was Software proofs, was Are there different gah4 <gah4@u.washington.edu> - 2023-02-08 01:10 -0800
Re: C arithmetic, was Software proofs, was Are there different gah4 <gah4@u.washington.edu> - 2023-02-09 00:26 -0800
Re: C arithmetic, was Software proofs, was Are there different gah4 <gah4@u.washington.edu> - 2023-02-11 00:01 -0800
Re: C arithmetic, was Software proofs, was Are there different drb@ihatespam.msu.edu (Dennis Boone) - 2023-02-12 04:37 +0000
Re: C arithmetic, was Software proofs, was Are there different anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2023-02-08 10:19 +0000
Re: C arithmetic, was Software proofs, was Are there different Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2023-02-10 19:11 +0100
Re: C arithmetic, was Software proofs, was Are there different gah4 <gah4@u.washington.edu> - 2023-02-10 23:47 -0800
Re: C arithmetic, was Software proofs, was Are there different anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2023-02-11 22:34 +0000
Re: old floating point, C arithmetic, was Software proofs, was Are there different gah4 <gah4@u.washington.edu> - 2023-02-11 22:48 -0800
Re: C arithmetic, was Software proofs, was Are there different Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2023-02-08 15:24 +0100
Re: C arithmetic, was Software proofs, was Are there different gah4 <gah4@u.washington.edu> - 2023-02-09 00:37 -0800
csiph-web