Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #126440

Re: What happened to short float?

From GOTHIER Nathan <nathan.gothier@gmail.com>
Newsgroups comp.lang.c
Subject Re: What happened to short float?
Date 2018-02-08 17:04 +0100
Organization A noiseless patient Spider
Message-ID <20180208170417.6b4eb9764749db51883c29e1@gmail.com> (permalink)
References (2 earlier) <p52ngk$evf$1@dont-email.me> <fdr6e4Fp1fcU1@mid.individual.net> <20180208012936.09fa549ce0fe0785da7cf560@gmail.com> <lnk1voz46u.fsf@kst-u.example.com> <ca738dea-8d44-4650-8a25-d67d44bdff2c@googlegroups.com>

Show all headers | View raw


On Thu, 8 Feb 2018 06:36:44 -0800 (PST)
jameskuyper@verizon.net wrote:

> I'd expect that the characteristics of a new short float type would be
> specified in the same way as they are for float, double, and long
> double. The requirements in 5.2.4.2.2 on the numeric characteristics
> of floating point types set either maximum values, or minimum values,
> or minimums on the magnitude of the values - so there's nothing
> preventing float, for instance, from being an 80-bit floating point
> type. The same would therefore also be true of short float. I'd
> expect at least some implementations targeting a platform with no
> hardware support for a 16-bit type to use a 32-bit floating point
> type for short float.
> 
> I've just reviewed the proposal, and it doesn't go into such details.

IMHO, it could be better to define an half_t type capable of
representing at least an half precision floating point number. It would
be more portable for most implementations.

The analogy of the short float type with the long double type doesn't
work well since the long double type give an alternative to implement a
quad precision floating pointer type with an extended double precision
floating point type. Moreover, the C programming language usually
defines types with minimal magnitude values.

-- 
GOTHIER Nathan

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

What happened to short float? Philipp Klaus Krause <pkk@spth.de> - 2018-01-17 17:21 +0100
  Re: What happened to short float? "James R. Kuyper" <jameskuyper@verizon.net> - 2018-01-17 11:42 -0500
    Re: What happened to short float? jacobnavia <jacob@jacob.remcomp.fr> - 2018-02-02 23:08 +0100
      Re: What happened to short float? Jakob Bohm <jb-usenet@wisemo.com> - 2018-02-05 07:57 +0100
        Re: What happened to short float? jameskuyper@verizon.net - 2018-02-05 05:31 -0800
      Re: What happened to short float? Tim Prince <tprince@intelretiree.com> - 2018-02-05 08:55 -0500
        Re: What happened to short float? jacobnavia <jacob@jacob.remcomp.fr> - 2018-02-05 15:46 +0100
        Re: What happened to short float? GOTHIER Nathan <nathan.gothier@gmail.com> - 2018-02-08 01:29 +0100
          Re: What happened to short float? Keith Thompson <kst-u@mib.org> - 2018-02-07 16:59 -0800
            Re: What happened to short float? Philipp Klaus Krause <pkk@spth.de> - 2018-02-08 09:08 +0100
              Re: What happened to short float? Keith Thompson <kst-u@mib.org> - 2018-02-08 09:27 -0800
            Re: What happened to short float? GOTHIER Nathan <nathan.gothier@gmail.com> - 2018-02-08 09:54 +0100
              Re: What happened to short float? Keith Thompson <kst-u@mib.org> - 2018-02-08 10:13 -0800
            Re: What happened to short float? jameskuyper@verizon.net - 2018-02-08 06:36 -0800
              Re: What happened to short float? GOTHIER Nathan <nathan.gothier@gmail.com> - 2018-02-08 17:04 +0100
                Re: What happened to short float? jameskuyper@verizon.net - 2018-02-08 08:56 -0800
                Re: What happened to short float? scott@slp53.sl.home (Scott Lurndal) - 2018-02-08 17:23 +0000
                Re: What happened to short float? GOTHIER Nathan <nathan.gothier@gmail.com> - 2018-02-08 18:52 +0100
                Re: What happened to short float? jameskuyper@verizon.net - 2018-02-08 11:27 -0800
                Re: What happened to short float? GOTHIER Nathan <nathan.gothier@gmail.com> - 2018-02-08 22:58 +0100
              Re: What happened to short float? Keith Thompson <kst-u@mib.org> - 2018-02-08 10:18 -0800
          Re: What happened to short float? Jakob Bohm <jb-usenet@wisemo.com> - 2018-02-08 18:59 +0100
            Re: What happened to short float? Robert Wessel <robertwessel2@yahoo.com> - 2018-02-08 16:22 -0600
              Re: What happened to short float? Jakob Bohm <jb-usenet@wisemo.com> - 2018-02-09 15:01 +0100
  Re: What happened to short float? Chad <cdalten@gmail.com> - 2018-01-17 09:12 -0800
  Re: What happened to short float? scott@slp53.sl.home (Scott Lurndal) - 2018-01-17 17:31 +0000
  Re: What happened to short float? jacobnavia <jacob@jacob.remcomp.fr> - 2018-01-17 19:52 +0100
    Re: What happened to short float? Philipp Klaus Krause <pkk@spth.de> - 2018-01-18 13:18 +0100
      Re: What happened to short float? bartc <bc@freeuk.com> - 2018-01-18 12:40 +0000

csiph-web