Skip to content
ForCADDocumentation

two_sum Subroutine

public pure subroutine two_sum(a, b, total, remainder)

FastTwoSum with its larger-magnitude operand first.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: a
real(kind=rk), intent(in) :: b
real(kind=rk), intent(out) :: total
real(kind=rk), intent(out) :: remainder