safe_exp Function

public elemental function safe_exp(x) result(y)

exp(x). Plain elemental inline around the intrinsic — zero overhead, codegen identical to writing exp(x) directly. No production module calls this today (PR-8 removed the RDB_BITWISE_REPRO dispatch that once routed it to safe_exp_polynomial, which enabled nothing); see the module docstring.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: x

Return Value real(kind=wp)


Source Code

   elemental function safe_exp(x) result(y)
      !! `exp(x)`.  Plain elemental inline around the intrinsic — zero
      !! overhead, codegen identical to writing `exp(x)` directly.  No
      !! production module calls this today (PR-8 removed the
      !! `RDB_BITWISE_REPRO` dispatch that once routed it to
      !! `safe_exp_polynomial`, which enabled nothing); see the module
      !! docstring.
      real(wp), intent(in) :: x
      real(wp) :: y
      y = exp(x)
   end function safe_exp