| Предыдущий | Следующий |
| STATUS_FLOAT_INEXACT_RESULT | STATUS_FLOAT_OVERFLOW |
STATUS_FLOAT_INVALID_OPERATION
Что означает STATUS_FLOAT_INVALID_OPERATION
STATUS_FLOAT_INVALID_OPERATION — недопустимая операция с плавающей точкой.
Что проверить
Сохраните floating-point exception context: instruction, registers/FPU state и stack.
- Определите конкретное исключение — divide by zero, overflow, underflow, invalid operation, denormal или stack fault.
- Проверьте маски FPU/SSE exceptions и входные данные операции; multiple faults/traps требуют анализа первого исключения в цепочке.
Исходная формулировка
An unmasked floating-point operation had no defined numerical result.
Invalid-operation conditions include forms such as 0/0, infinity minus infinity, square root of a negative finite value in real arithmetic, or operations involving signaling NaNs. When masked, the processor normally produces a quiet NaN and records the flag; when unmasked, the condition is delivered as this exception.
Capture raw operand bits and classify NaN, infinity, zero, and finite values.
Do not replace NaNs with zero globally without defining application semantics.
Inspect operand bit patterns, not only formatted decimal output.
Технические ссылки
- Microsoft Learn: _fpieee_flt
- Microsoft Learn: _control87 and _controlfp
- Microsoft Learn: /fp floating-point behavior
- Intel: Floating-Point Reference Sheet
Нужно найти другой код? Найти другой код состояния или ошибки.