feholdexcept
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>| definiert in Header <<fenv.h>>
|
||
int feholdexcept( fenv_t* envp ); |
||
Zunächst wird die aktuelle Floating-Point-Umgebung, um das Objekt, auf das
envp (ähnlich fegetenv), dann löscht alle Floating-Point-Status-Flags, und installiert dann die Non-Stop-Modus: Zukunft Gleitkomma-Ausnahmen werden nicht unterbrechen Ausführung ( nicht einfangen), bis die Floating-Point-Umgebung durch feupdateenv wiederhergestellt oder fesetenv .Original:
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.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Diese Funktion kann in den Anfang eines Unterprogramms, das die Floating-Point-Ausnahmen ist es aus der Anruferliste erhöhen kann verstecken muss verwendet werden. Wenn nur einige Ausnahmen müssen unterdrückt werden, während andere müssen gemeldet werden, wird der Non-Stop-Modus in der Regel mit einem Aufruf an
feupdateenv nach dem Löschen der unerwünschten Ausnahmen beendet .Original:
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.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Parameter
| envp | - | Zeiger auf das Objekt vom Typ
fenv_t wo das Floating-Point-Umgebung gespeichert werdenOriginal: pointer to the object of type fenv_t where the floating-point environment will be storedThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Rückgabewert
0 bei Erfolg Null sonst .Original:
0 on success, non-zero otherwise.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Beispiel
| This section is incomplete Reason: no example |
