Object

scala.scalanative.libc

fenv

Related Doc: package libc

Permalink

object fenv

Annotations
@extern()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. fenv
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type fenv_t = CStruct0

    Permalink
  2. type fexcept_t = CStruct0

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def FE_ALL_EXCEPT: CInt

    Permalink

    bitwise OR of all supported floating-point exceptions

    bitwise OR of all supported floating-point exceptions

    Annotations
    @name( "scalanative_fe_all_except" )
  5. def FE_DIVBYZERO: CInt

    Permalink

    pole error occurred in an earlier floating-point operation

    pole error occurred in an earlier floating-point operation

    Annotations
    @name( "scalanative_fe_divbyzero" )
  6. def FE_DOWNWARD: CInt

    Permalink

    rounding towards negative infinity

    rounding towards negative infinity

    Annotations
    @name( "scalanative_fe_downward" )
  7. def FE_INEXACT: CInt

    Permalink

    inexact result: rounding was necessary to store the result of an earlier floating-point operation

    inexact result: rounding was necessary to store the result of an earlier floating-point operation

    Annotations
    @name( "scalanative_fe_inexact" )
  8. def FE_INVALID: CInt

    Permalink

    domain error occurred in an earlier floating-point operation

    domain error occurred in an earlier floating-point operation

    Annotations
    @name( "scalanative_fe_invalid" )
  9. def FE_OVERFLOW: CInt

    Permalink

    the result of an earlier floating-point operation was too large to be representable

    the result of an earlier floating-point operation was too large to be representable

    Annotations
    @name( "scalanative_fe_overflow" )
  10. def FE_TONEAREST: CInt

    Permalink

    rounding towards nearest representable value

    rounding towards nearest representable value

    Annotations
    @name( "scalanative_fe_tonearest" )
  11. def FE_TOWARDZERO: CInt

    Permalink

    rounding towards zero

    rounding towards zero

    Annotations
    @name( "scalanative_fe_towardzero" )
  12. def FE_UNDERFLOW: CInt

    Permalink

    the result of an earlier floating-point operation was subnormal with a loss of precision

    the result of an earlier floating-point operation was subnormal with a loss of precision

    Annotations
    @name( "scalanative_fe_underflow" )
  13. def FE_UPWARD: CInt

    Permalink

    rounding towards positive infinity

    rounding towards positive infinity

    Annotations
    @name( "scalanative_fe_upward" )
  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def feclearexcept(excepts: CInt): CInt

    Permalink

    Attempts to clear the floating-point exceptions that are listed in the bitmask argument excepts, which is a bitwise OR of the floating-point exception macros.

    Attempts to clear the floating-point exceptions that are listed in the bitmask argument excepts, which is a bitwise OR of the floating-point exception macros.

    excepts

    bitmask listing the exception flags to clear

    returns

    ​0​ if all indicated exceptions were successfully cleared or if excepts is zero. A non-zero value on error.

  19. def fegetenv(envp: Ptr[fenv_t]): CInt

    Permalink

    1) Attempts to store the status of the floating-point environment in the object pointed to by envp.

    1) Attempts to store the status of the floating-point environment in the object pointed to by envp.

    envp

    pointer to the object of type fenv_t which holds the status of the floating-point environment

    returns

    ​0​ on success, non-zero otherwise.

  20. def fegetexceptflag(flagp: Ptr[fexcept_t], excepts: CInt): CInt

    Permalink

    Attempts to obtain the full contents of the floating-point exception flags that are listed in the bitmask argument excepts, which is a bitwise OR of the floating-point exception macros.

    Attempts to obtain the full contents of the floating-point exception flags that are listed in the bitmask argument excepts, which is a bitwise OR of the floating-point exception macros.

    flagp

    pointer to an fexcept_t object where the flags will be stored or read from

    excepts

    bitmask listing the exception flags to get/set

    returns

    ​0​ on success, non-zero otherwise.

  21. def fegetround(): CInt

    Permalink

    Returns the value of the floating-point rounding macro that corresponds to the current rounding direction.

    Returns the value of the floating-point rounding macro that corresponds to the current rounding direction.

    returns

    the floating-point rounding macro describing the current rounding direction or a negative value if the direction cannot be determined.

  22. def feholdexcept(envp: Ptr[fenv_t]): CInt

    Permalink

    First, saves the current floating-point environment to the object pointed to by envp (similar to fegetenv), then clears all floating-point status flags, and then installs the non-stop mode: future floating-point exceptions will not interrupt execution (will not trap), until the floating-point environment is restored by feupdateenv or fesetenv.

    First, saves the current floating-point environment to the object pointed to by envp (similar to fegetenv), then clears all floating-point status flags, and then installs the non-stop mode: future floating-point exceptions will not interrupt execution (will not trap), until the floating-point environment is restored by feupdateenv or fesetenv.

    This function may be used in the beginning of a subroutine that must hide the floating-point exceptions it may raise from the caller. If only some exceptions must be suppressed, while others must be reported, the non-stop mode is usually ended with a call to feupdateenv after clearing the unwanted exceptions.

    envp

    pointer to the object of type fenv_t where the floating-point environment will be stored

    returns

    ​0​ on success, non-zero otherwise.

  23. def feraiseexcept(excepts: CInt): CInt

    Permalink

    Attempts to raise all floating-point exceptions listed in excepts (a bitwise OR of the floating-point exception macros).

    Attempts to raise all floating-point exceptions listed in excepts (a bitwise OR of the floating-point exception macros). If one of the exceptions is FE_OVERFLOW or FE_UNDERFLOW, this function may additionally raise FE_INEXACT. The order in which the exceptions are raised is unspecified, except that FE_OVERFLOW and FE_UNDERFLOW are always raised before FE_INEXACT.

    excepts

    bitmask listing the exception flags to raise

    returns

    ​0​ if all listed exceptions were raised, non-zero value otherwise.

  24. def fesetenv(envp: Ptr[fenv_t]): CInt

    Permalink

    2) Attempts to establish the floating-point environment from the object pointed to by envp.

    2) Attempts to establish the floating-point environment from the object pointed to by envp. The value of that object must be previously obtained by a call to feholdexcept or fegetenv or be a floating-point macro constant. If any of the floating-point status flags are set in envp, they become set in the environment (and are then testable with fetestexcept), but the corresponding floating-point exceptions are not raised (execution continues uninterrupted)

    envp

    pointer to the object of type fenv_t which holds the status of the floating-point environment

    returns

    ​0​ on success, non-zero otherwise.

  25. def fesetexceptflag(flagp: Ptr[fexcept_t], excepts: CInt): CInt

    Permalink

    Attempts to copy the full contents of the floating-point exception flags that are listed in excepts from flagp into the floating-point environment.

    Attempts to copy the full contents of the floating-point exception flags that are listed in excepts from flagp into the floating-point environment. Does not raise any exceptions, only modifies the flags.

    flagp

    pointer to an fexcept_t object where the flags will be stored or read from

    excepts

    bitmask listing the exception flags to get/set

    returns

    ​0​ on success, non-zero otherwise.

  26. def fesetround(round: CInt): CInt

    Permalink

    Attempts to establish the floating-point rounding direction equal to the argument round, which is expected to be one of the floating-point rounding macros.

    Attempts to establish the floating-point rounding direction equal to the argument round, which is expected to be one of the floating-point rounding macros.

    round

    rounding direction, one of floating-point rounding macros

    returns

    ​0​ on success, non-zero otherwise.

  27. def fetestexcept(excepts: CInt): CInt

    Permalink

    Determines which of the specified subset of the floating-point exceptions are currently set.

    Determines which of the specified subset of the floating-point exceptions are currently set. The argument excepts is a bitwise OR of the floating-point exception macros.

    excepts

    bitmask listing the exception flags to test

    returns

    Bitwise OR of the floating-point exception macros that are both included in excepts and correspond to floating-point exceptions currently set.

  28. def feupdateenv(envp: Ptr[fenv_t]): CInt

    Permalink

    First, remembers the currently raised floating-point exceptions, then restores the floating-point environment from the object pointed to by envp (similar to fesetenv), then raises the floating-point exceptions that were saved.

    First, remembers the currently raised floating-point exceptions, then restores the floating-point environment from the object pointed to by envp (similar to fesetenv), then raises the floating-point exceptions that were saved.

    This function may be used to end the non-stop mode established by an earlier call to feholdexcept.

    envp

    pointer to the object of type fenv_t set by an earlier call to feholdexcept or fegetenv or equal to FE_DFL_ENV

    returns

    ​0​ on success, non-zero otherwise.

  29. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  30. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  31. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped