• SIGFPE

    From Fred J. Tydeman@tydeman.consulting@sbcglobal.net to comp.lang.c on Wed Oct 23 05:10:30 2024
    From Newsgroup: comp.lang.c


    Anyone know of any 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.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Andrey Tarasevich@andreytarasevich@hotmail.com to comp.lang.c on Wed Oct 23 00:42:12 2024
    From Newsgroup: comp.lang.c

    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
    --
    Best regards,
    Andrey

    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Fred J. Tydeman@tydeman.consulting@sbcglobal.net to comp.lang.c on Thu Oct 24 17:01:33 2024
    From Newsgroup: comp.lang.c

    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?

    Oops. I see I asked the wrong question.

    Anyone know of any implementations where the standard library functions 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.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Fred J. Tydeman@tydeman.consulting@sbcglobal.net to comp.lang.c on Thu Oct 24 17:05:11 2024
    From Newsgroup: comp.lang.c

    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.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From James Kuyper@jameskuyper@alumni.caltech.edu to comp.lang.c,comp.std.c on Thu Oct 24 13:27:34 2024
    From Newsgroup: comp.lang.c

    On 10/24/24 13:01, Fred J. Tydeman wrote:
    Anyone know of any implementations where the standard library functions use SIGFPE?
    ...

    "... the functions in <math.h> ... Each function shall execute as if it
    were a single operation without raising SIGFPE ..." (7.12.1p1).


    --- Synchronet 3.20a-Linux NewsLink 1.114