Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scivision/sigfpe
Signaling of floating point exceptions across compliers and OS
https://github.com/scivision/sigfpe
Last synced: 14 days ago
JSON representation
Signaling of floating point exceptions across compliers and OS
- Host: GitHub
- URL: https://github.com/scivision/sigfpe
- Owner: scivision
- License: mit
- Created: 2023-07-28T11:52:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-06T01:54:00.000Z (over 1 year ago)
- Last Synced: 2024-05-02T03:09:32.813Z (7 months ago)
- Language: C
- Size: 84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Apple Silicon exception handling
[![ci](https://github.com/scivision/sigfpe/actions/workflows/ci.yml/badge.svg)](https://github.com/scivision/sigfpe/actions/workflows/ci.yml)
[Original idea](https://github.com/ForestClaw/forestclaw/pull/201/files)
This example implements DYI
[floating point](https://en.cppreference.com/w/c/numeric/fenv)
exception handling.This approach is intended Unix-like operating systems only at this time (Linux, macOS, ...).
Windows (MinGW GCC, MSVC) does also work with the "check" function vs. signaling.
Windows signaling could be a
[future extension](https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2012/e9b52ceh(v=vs.110)).Results:
* [Fortran](./results_Fortran.md)
Ideas for code:
* https://developer.apple.com/forums/thread/689159
* https://stackoverflow.com/questions/69059981/how-to-trap-floating-point-exceptions-on-m1-macs