Пространства имён
Варианты
Действия

feholdexcept

Материал из cppreference.com
< c | numeric | fenv

Заголовочный файл <<fenv.h>>
int feholdexcept( fenv_t* envp );
(начиная с C99)
Во-первых, сохраняет текущий плавающей точкой окружающей среды на объект, на который указывает envp (по аналогии с fegetenv), то удаляются все с плавающей точкой флаги состояния, а затем устанавливает режиме нон-стоп: будущее с плавающей точкой исключений не будет прерывать выполнение ( Не будут захватывать), пока с плавающей точкой окружающей среды восстанавливается feupdateenv или 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.
Эта функция может быть использована в начале подпрограммы, которые должны скрыть плавающей точкой исключениями, это может поднять от абонента. Если только некоторые исключения должны быть подавлены, в то время как другие должны быть сообщалось, режиме нон-стоп, как правило, заканчивались вызовом feupdateenv после удаления нежелательных исключения.
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.

Содержание

[править] Параметры

envp -
указатель на объект типа fenv_t, где с плавающей точкой среду будут сохранены
Original:
pointer to the object of type fenv_t where the floating-point environment will be stored
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[править] Возвращаемое значение

0 на успех, ненулевое иначе.
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.

[править] Пример

[править] См. также

Восстанавливает с плавающей точкой окружающей среды и повышает ранее вызывать исключения
Original:
restores the floating-point environment and raises the previously raise exceptions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(функция) [edit]
сохраняет или восстанавливает текущую плавающей точкой окружающей среды
Original:
saves or restores the current floating point environment
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(функция) [edit]
умолчанию с плавающей точкой окружающей среды
Original:
default floating-point environment
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(константа-макрос) [edit]
C++ документация для feholdexcept