Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.unix.programmer Subject: Re: Python (was Re: I did not inhale) Date: Tue, 20 Aug 2024 15:06:31 -0700 Organization: None to speak of Lines: 48 Message-ID: <878qwqdf2w.fsf@nosuchdomain.example.com> References: <20240408075547.000061e8@gmail.com> <20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org> <87il0lldf8.fsf@tudado.org> <20240815182717.189@kylheku.com> <87wmkdd484.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Wed, 21 Aug 2024 00:06:31 +0200 (CEST) Injection-Info: dont-email.me; posting-host="7a2cb821a5a9c1554a17483648fb73a0"; logging-data="3716861"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JjFPEo3muLJLK3BqtD//f" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:dGV+ilvtxThzvD+khrMnYKs0pUc= sha1:KYLdWRiDWTOVxWqdENakv5pzQcI= Bytes: 3046 James Kuyper writes: > I originally posted this a couple of days ago, to the wrong newsgroup. > Sorry. > > On 8/18/24 15:24, Keith Thompson wrote: >> David Brown writes: >> [...] >>> Without looking it up, what does the C standard library "fegetmode" >>> function do? >> >> Nothing, it's specific to GNU libc. > > ? It's in every draft version of the C standard that I have since > n2346.pdf, dated 2019-03-13. In the latest draft I have, n3096.pdf, it > is described as follows: > > 7.6.5.1 > "The fegetmode function > Synopsis > #include > int fegetmode(femode_t *modep); > > Description > The fegetmode function attempts to store all the dynamic floating-point > control modes in the object pointed to by modep. > > Returns > The fegetmode function returns zero if the modes were successfully > stored. Otherwise, it returns a nonzero value." Copying what I posted to comp.lang.c : You're right. It's not in C11 or C17, but it is in the C23 drafts. My mistake. .... The earliest reference I can find to fegetmode is in n2314, "Floating-point extensions for C", 2018-11-12. The earliest draft standard that refers to it is n2346, 2019-03-13. https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2314.pdf https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2346.pdf -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */