Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #452 - missing REAL80 procedure #453

Merged
merged 2 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Missing implementation of `assertIsFinite_real80()`. Apparently undetected until recent attempt to port to flang.

## [4.8.0] -2023-11-29

### Changed
Expand Down
12 changes: 12 additions & 0 deletions src/funit/asserts/AssertBasic.F90
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,18 @@ subroutine assertIsFinite_real64(x, message, location)
end subroutine assertIsFinite_real64
#endif

#ifdef _REAL80_IEEE_SUPPORT
subroutine assertIsFinite_real80(x, message, location)
use, intrinsic :: ieee_arithmetic, only: ieee_is_finite
real(kind=REAL80), intent(in) :: x
character(len=*), optional, intent(in) :: message
type (SourceLocation), optional, intent(in) :: location

call assertTrue(ieee_is_finite(x), message, location)

end subroutine assertIsFinite_real80
#endif

#ifdef _REAL128_IEEE_SUPPORT
subroutine assertIsFinite_real128(x, message, location)
use, intrinsic :: ieee_arithmetic, only: ieee_is_finite
Expand Down
Loading