Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: struct padding question Date: Thu, 23 Mar 2017 12:21:48 -0700 Organization: None to speak of Lines: 19 Message-ID: References: <20170323140413.9a2515568baa60870b1b6570@gmail.com> <6527496a-a2b4-44a0-90c3-9fda0475ca2e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="1b33b319c9f9fcfff45ec1f5b5f6ee2d"; logging-data="28253"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3M4LCvb+C1rd3r0X6iuUZ" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:rroZu4fDySNmrrTf2O4vK5Pb2nQ= sha1:1DIXAWniNRBPiVmtC6/vBS4TIqs= Xref: csiph.com comp.lang.c:106842 supercat@casperkitty.com writes: [...] > If C had specified that all computations on double promote to "long double" > [which might or might not be longer than double], all computations on float > promote to "long float" [whose precision could be anywhere between > that of "float" and "long double"], and all "normal" floating-point values > passed to variadic functions either promote to the same implementation- > defined type or to a type defined in the prototype, it would have been much > easier to write floating-point math code that works cleanly and efficiently > on many different implementations. Are you aware of the types float_t and double_t, both defined in , and the macro FLT_EVAL_METHOD, defined in ? -- 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"