Path: csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Spurious diagnostic messages Date: Sat, 01 Aug 2015 14:31:22 -0700 Organization: None to speak of Lines: 42 Message-ID: References: <662af1c4-4aff-4810-9a67-b913281fab59@googlegroups.com> <874mn5ty3y.fsf@kst-u.example.com> <87egm8qis7.fsf@kst-u.example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="10384"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DAEjS3Bdsf57gHap4CXAv" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:ENX8AjWK/1RJZYbs6kXl/i03+0c= sha1:WN0K5z/lNObr6P7EgHesc606hrk= Xref: csiph.com comp.lang.c:66653 Ian Collins writes: [...] > Something that provides so little value to *you*. C99 set the adding > value (and cost of implementation) bar pretty low with the inclusion of > the all the maths stuff hardly anyone uses.. The biggest impediment to > the take up of C99 was the cost of adding the (to embedded programmers) > zero value maths library requirements. > > For those of us who write drivers and board support code, binary > literals do add value. That's why they are such a common extension to > embedded compilers. > > I would be interested to see the results of a poll of C programmers asking > > "what would you rather have in C, binary literals or ?" C99 made two major additions to the math library. One was , which never struck me as being all that useful. (Though it does let you define a floating-point typedef and operate on it, and change the typedef without having to change all the calls.) The other was the addition of functions for float and long double. For example, C90 only had double sqrt(double); C99 extended this to; float sqrtf(float); double sqrt(double); long double sqrtl(double); and likewise for the other floating-point functions. I don't do a lot of floating-point myself, but the latter strikes me as a perfectly reasonable change, filling in an arbitrary gap in C90. (BTW, wouldn't have made sense without the float and long double functions.) -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"