| Deutsch English Français Italiano |
|
<Jd11RFbi8Eoq-pn2-Fs5W95D5XjbX@localhost> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: "Fred J. Tydeman" <tydeman.consulting@sbcglobal.net>
Newsgroups: comp.lang.c
Subject: Re: SIGFPE
Date: Thu, 24 Oct 2024 17:05:11 -0000 (UTC)
Organization: Tydeman Consulting
Lines: 28
Message-ID: <Jd11RFbi8Eoq-pn2-Fs5W95D5XjbX@localhost>
References: <Jd11RFbi8Eoq-pn2-vqVzCv1oVeGd@localhost> <vfa9cl$1unia$1@dont-email.me>
Reply-To: tydeman@tybor.com
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 24 Oct 2024 19:05:11 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4246e4b4d475be05dc2b4e004ecac588";
logging-data="2864157"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yohMJ2ijhfbVjktbedhe8"
User-Agent: ProNews/2 V1.60.cp125
Cancel-Lock: sha1:Cpx9tlu+lVFjxnsEO6IZj7g0QQI=
Bytes: 1814
On Wed, 23 Oct 2024 07:42:12 UTC, Andrey Tarasevich <andreytarasevich@hotmail.com> wrote:
> On 10/22/24 10:10 PM, Fred J. Tydeman wrote:
> >
> > Anyone know of any implementations that use SIGFPE?
> > If so, how is it used?
>
> #include <limits.h>
>
> int main(void)
> {
> int a = INT_MIN, b = -1;
> return a / b;
> }
>
> https://godbolt.org/z/GnYsnTWWd
>
> Program terminated with signal: SIGFPE
I see I asked the wrong question.
Anyone know of any standard C libaray implementations that use SIGFPE?
If so, how is it used?
---
Fred J. Tydeman Tydeman Consulting
tydeman@tybor.com Testing, numerics, programming
+1 (702) 608-6093 Vice-chair of INCITS/C (ANSI "C")
Sample C17+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.