#include "stdio.h"
#include "string.h"
#include "ntos.h"
Go to the source code of this file.
Classes | |
union | _FLOATING_STATUS |
Defines | |
#define | SI (1 << 2) |
#define | SU (1 << 3) |
#define | SO (1 << 4) |
#define | SZ (1 << 5) |
#define | SV (1 << 6) |
#define | EI (1 << 7) |
#define | EU (1 << 8) |
#define | EO (1 << 9) |
#define | EZ (1 << 10) |
#define | EV (1 << 11) |
#define | XI (1 << 12) |
#define | XU (1 << 13) |
#define | XO (1 << 14) |
#define | XZ (1 << 15) |
#define | XV (1 << 16) |
#define | CC (1 << 23) |
#define | FS (1 << 24) |
#define | MINUS_DOUBLE_INFINITY_VALUE (DOUBLE_INFINITY_VALUE_HIGH | (1 << 31)) |
#define | MINUS_SINGLE_INFINITY_VALUE (SINGLE_INFINITY_VALUE | (1 << 31)) |
#define | DOUBLE_SIGNAL_NAN_PREFIX 0x7ff80000 |
#define | SINGLE_SIGNAL_NAN_PREFIX 0x7fc00000 |
#define | SIGN (1 << 31) |
Typedefs | |
typedef _FLOATING_STATUS | FLOATING_STATUS |
typedef _FLOATING_STATUS * | PFLOATING_STATUS |
Functions | |
ULONG | AddDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Addend1, IN PULARGE_INTEGER Addend2, OUT PULARGE_INTEGER Result) |
ULONG | DivideDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Dividend, IN PULARGE_INTEGER Divisor, OUT PULARGE_INTEGER Result) |
ULONG | MultiplyDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Multiplicand, IN PULARGE_INTEGER Multiplier, OUT PULARGE_INTEGER Result) |
ULONG | SubtractDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Subtrahend, IN PULARGE_INTEGER Minuend, OUT PULARGE_INTEGER Result) |
ULONG | AddSingle (IN ULONG RoundingMode, IN ULONG Addend1, IN ULONG Addend2, OUT PULONG Result) |
ULONG | DivideSingle (IN ULONG RoundingMode, IN ULONG Dividend, IN ULONG Divisor, OUT PULONG Result) |
ULONG | MultiplySingle (IN ULONG RoundingMode, IN ULONG Multiplicand, IN ULONG Multiplier, OUT PULONG Result) |
ULONG | SubtractSingle (IN ULONG RoundingMode, IN ULONG Subtrahend, IN ULONG Minuend, OUT PULONG Result) |
ULONG | AbsoluteDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Operand, OUT PULARGE_INTEGER Result) |
ULONG | CeilToLongwordFromDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Source, OUT PULONG Result) |
ULONG | CeilToLongwordFromSingle (IN ULONG RoundingMode, IN ULONG Source, OUT PULONG Result) |
ULONG | ConvertToDoubleFromSingle (IN ULONG RoundingMode, IN ULONG Source, OUT PULARGE_INTEGER Result) |
ULONG | ConvertToLongwordFromDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Source, OUT PULONG Result) |
ULONG | ConvertToLongwordFromSingle (IN ULONG RoundingMode, IN ULONG Source, OUT PULONG Result) |
ULONG | ConvertToSingleFromDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Source, OUT PULONG Result) |
ULONG | CompareFDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareUnDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareEqDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareUeqDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareOltDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareUltDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareOleDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareUleDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareSfDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareNgleDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareSeqDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareNglDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareLtDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareNgeDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareLeDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareNgtDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Comparand1, IN PULARGE_INTEGER Comparand2) |
ULONG | CompareFSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareUnSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareEqSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareUeqSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareOltSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareUltSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareOleSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareUleSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareSfSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareNgleSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareSeqSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareNglSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareLtSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareNgeSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareLeSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | CompareNgtSingle (IN ULONG RoundingMode, IN ULONG Comparand1, IN ULONG Comparand2) |
ULONG | FloorToLongwordFromDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Source, OUT PULONG Result) |
ULONG | FloorToLongwordFromSingle (IN ULONG RoundingMode, IN ULONG Source, OUT PULONG Result) |
ULONG | MoveDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Operand, OUT PULARGE_INTEGER Result) |
ULONG | NegateDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Operand, OUT PULARGE_INTEGER Result) |
ULONG | AbsoluteSingle (IN ULONG RoundingMode, IN ULONG Operand, OUT PULONG Result) |
ULONG | MoveSingle (IN ULONG RoundingMode, IN ULONG Operand, OUT PULONG Result) |
ULONG | NegateSingle (IN ULONG RoundingMode, IN ULONG Operand, OUT PULONG Result) |
ULONG | RoundToLongwordFromDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Source, OUT PULONG Result) |
ULONG | RoundToLongwordFromSingle (IN ULONG RoundingMode, IN ULONG Source, OUT PULONG Result) |
ULONG | TruncateToLongwordFromDouble (IN ULONG RoundingMode, IN PULARGE_INTEGER Source, OUT PULONG Result) |
ULONG | TruncateToLongwordFromSingle (IN ULONG RoundingMode, IN ULONG Source, OUT PULONG Result) |
VOID | Test1 (VOID) |
VOID | Test2 (VOID) |
VOID | Test3 (VOID) |
VOID | Test4 (VOID) |
VOID | Test5 (VOID) |
VOID | Test6 (VOID) |
VOID | Test7 (VOID) |
VOID | Test8 (VOID) |
VOID | Test9 (VOID) |
VOID | Test10 (VOID) |
VOID | Test11 (VOID) |
VOID | Test12 (VOID) |
VOID | Test13 (VOID) |
VOID | Test14 (VOID) |
VOID | Test15 (VOID) |
VOID | Test16 (VOID) |
VOID | Test17 (VOID) |
VOID | Test18 (VOID) |
VOID | Test19 (VOID) |
VOID | Test20 (VOID) |
VOID | Test21 (VOID) |
VOID | Test22 (VOID) |
VOID | Test23 (VOID) |
VOID | Test24 (VOID) |
VOID | Test25 (VOID) |
VOID | Test26 (VOID) |
|
|
|
Definition at line 67 of file flpt.h. Referenced by Test16(). |
|
Definition at line 40 of file flpt.h. Referenced by Test1(), Test11(), Test12(), Test13(), Test14(), Test15(), Test17(), Test2(), Test21(), Test23(), Test24(), Test3(), Test4(), Test5(), and Test7(). |
|
Definition at line 42 of file flpt.h. Referenced by Test1(), Test11(), Test17(), Test21(), and Test7(). |
|
|
|
Definition at line 44 of file flpt.h. Referenced by Test10(), Test16(), Test17(), Test18(), Test19(), Test20(), Test21(), Test22(), Test23(), Test24(), Test25(), Test26(), Test6(), Test7(), Test8(), and Test9(). |
|
|
|
|
|
Definition at line 60 of file flpt.h. Referenced by Test16(), Test17(), Test18(), Test19(), Test21(), Test22(), Test24(), and Test25(). |
|
Definition at line 61 of file flpt.h. Referenced by Test21(), Test22(), Test23(), Test26(), Test6(), Test7(), Test8(), and Test9(). |
|
Definition at line 34 of file flpt.h. Referenced by Test11(), Test12(), Test13(), Test14(), Test15(), Test17(), Test18(), Test2(), Test21(), Test23(), Test24(), Test25(), Test26(), Test3(), Test4(), Test5(), Test7(), and Test8(). |
|
Definition at line 74 of file flpt.h. Referenced by Test1(), Test10(), Test11(), Test14(), Test15(), Test16(), Test17(), Test18(), Test19(), Test20(), Test21(), Test22(), Test23(), Test24(), Test25(), Test26(), Test4(), Test5(), Test6(), Test7(), Test8(), and Test9(). |
|
Definition at line 68 of file flpt.h. Referenced by Test6(). |
|
Definition at line 36 of file flpt.h. Referenced by Test17(), Test18(), Test21(), Test7(), and Test8(). |
|
Definition at line 35 of file flpt.h. Referenced by Test17(), Test21(), Test25(), Test26(), and Test7(). |
|
Definition at line 38 of file flpt.h. Referenced by Test10(), Test16(), Test17(), Test18(), Test19(), Test20(), Test21(), Test22(), Test23(), Test24(), Test25(), Test26(), Test6(), Test7(), Test8(), and Test9(). |
|
|
|
|
|
|
|
|
|
Definition at line 50 of file flpt.h. Referenced by Test10(), Test16(), Test17(), Test18(), Test19(), Test20(), Test21(), Test22(), Test25(), Test26(), Test6(), Test7(), Test8(), and Test9(). |
|
|
|
Referenced by Test1(). |
|
|
|
Referenced by Test20(). |
|
Referenced by Test10(). |
|
Referenced by Test11(), Test12(), Test13(), Test14(), Test15(), and Test16(). |
|
Referenced by Test1(), Test2(), Test3(), Test4(), Test5(), and Test6(). |
|
|
|
|
|
Referenced by Test19(). |
|
Referenced by Test9(). |
|
Referenced by Test19(). |
|
Referenced by Test9(). |
|
Referenced by Test19(). |
|
Referenced by Test9(). |
|
Referenced by Test19(). |
|
Referenced by Test9(). |
|
Referenced by Test19(). |
|
Referenced by Test9(). |
|
Referenced by Test19(). |
|
Referenced by Test19(). |
|
Referenced by Test9(). |
|
Referenced by Test9(). |
|
Referenced by Test19(). |
|
Referenced by Test9(). |
|
Referenced by Test19(). |
|
Referenced by Test9(). |
|
Referenced by Test19(). |
|
Referenced by Test9(). |
|
Referenced by Test19(). |
|
Referenced by Test9(). |
|
Referenced by Test19(). |
|
Referenced by Test9(). |
|
Referenced by Test19(). |
|
Referenced by Test9(). |
|
|
|
|
|
Referenced by Test19(). |
|
Referenced by Test9(). |
|
Referenced by Test19(). |
|
Referenced by Test9(). |
|
Referenced by Test22(). |
|
Referenced by Test24(). |
|
Referenced by Test23(). |
|
Referenced by Test21(). |
|
Referenced by Test18(). |
|
Referenced by Test8(). |
|
|
|
|
|
Referenced by Test20(). |
|
Referenced by Test10(). |
|
Referenced by Test17(). |
|
Referenced by Test7(). |
|
Referenced by Test20(). |
|
Referenced by Test10(). |
|
Referenced by Test24(). |
|
Referenced by Test23(). |
|
Referenced by Test11(). |
|
Referenced by Test1(). |
|
Definition at line 75 of file flpt.c. References AddSingle(), Count, _FLOATING_STATUS::Data, EI, EO, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, FLOATING_STATUS, SIGN, and SubtractSingle(). Referenced by main().
|
|
Definition at line 3440 of file flpt.c. References AbsoluteSingle(), Count, _FLOATING_STATUS::Data, EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, MoveSingle(), NegateSingle(), SIGN, SV, and XV. Referenced by main().
|
|
Definition at line 3640 of file flpt.c. References AddDouble(), Count, _FLOATING_STATUS::Data, EI, EO, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, SI, SIGN, and SubtractDouble(). Referenced by main().
|
|
Definition at line 4201 of file flpt.c. References AddDouble(), Count, _FLOATING_STATUS::Data, EI, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, and SI. Referenced by main().
|
|
Definition at line 4391 of file flpt.c. References AddDouble(), Count, _FLOATING_STATUS::Data, EI, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, and SI. Referenced by main().
|
|
Definition at line 4581 of file flpt.c. References AddDouble(), Count, _FLOATING_STATUS::Data, EI, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, SI, and SIGN. Referenced by main().
|
|
Definition at line 4899 of file flpt.c. References AddDouble(), Count, _FLOATING_STATUS::Data, EI, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, SI, and SIGN. Referenced by main().
|
|
Definition at line 5217 of file flpt.c. References AddDouble(), Count, _FLOATING_STATUS::Data, DOUBLE_SIGNAL_NAN_PREFIX, EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, FS, MINUS_DOUBLE_INFINITY_VALUE, SIGN, SV, and XV. Referenced by main().
|
|
Definition at line 5679 of file flpt.c. References Count, _FLOATING_STATUS::Data, EI, EO, EU, EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, MINUS_DOUBLE_INFINITY_VALUE, MultiplyDouble(), SI, SIGN, SO, SU, SV, XI, XO, and XV. Referenced by main().
|
|
Definition at line 6769 of file flpt.c. References Count, _FLOATING_STATUS::Data, DivideDouble(), EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, EZ, MINUS_DOUBLE_INFINITY_VALUE, SI, SIGN, SO, SV, SZ, XV, and XZ. Referenced by main().
|
|
Definition at line 7401 of file flpt.c. References CC, CompareEqDouble(), CompareFDouble(), CompareLeDouble(), CompareLtDouble(), CompareNgeDouble(), CompareNglDouble(), CompareNgleDouble(), CompareNgtDouble(), CompareOleDouble(), CompareOltDouble(), CompareSeqDouble(), CompareSfDouble(), CompareUeqDouble(), CompareUltDouble(), CompareUnDouble(), Count, _FLOATING_STATUS::Data, EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, MINUS_DOUBLE_INFINITY_VALUE, SIGN, SV, and XV. Referenced by main().
|
|
Definition at line 425 of file flpt.c. References AddSingle(), Count, _FLOATING_STATUS::Data, EI, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, and SI. Referenced by main().
|
|
Definition at line 28 of file flpt2.c. References AbsoluteDouble(), Count, _FLOATING_STATUS::Data, EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, MoveDouble(), NegateDouble(), SIGN, SV, and XV. Referenced by main().
|
|
Definition at line 273 of file flpt2.c. References ConvertToSingleFromDouble(), Count, _FLOATING_STATUS::Data, EI, EO, EU, EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, MINUS_DOUBLE_INFINITY_VALUE, MINUS_SINGLE_INFINITY_VALUE, SI, SIGN, SO, SU, SV, XI, XO, and XV. Referenced by main().
|
|
Definition at line 592 of file flpt2.c. References ConvertToDoubleFromSingle(), Count, _FLOATING_STATUS::Data, EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, MINUS_DOUBLE_INFINITY_VALUE, MINUS_SINGLE_INFINITY_VALUE, SIGN, SV, and XV. Referenced by main().
|
|
Definition at line 745 of file flpt2.c. References ConvertToLongwordFromSingle(), Count, _FLOATING_STATUS::Data, EI, EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, MINUS_SINGLE_INFINITY_VALUE, RoundToLongwordFromSingle(), SI, SIGN, and SV. Referenced by main().
|
|
Definition at line 1208 of file flpt2.c. References ConvertToLongwordFromDouble(), Count, _FLOATING_STATUS::Data, EI, EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, MINUS_DOUBLE_INFINITY_VALUE, RoundToLongwordFromDouble(), SI, SIGN, SV, and TruncateToLongwordFromDouble(). Referenced by main().
|
|
Definition at line 1763 of file flpt2.c. References Count, _FLOATING_STATUS::Data, EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, MINUS_DOUBLE_INFINITY_VALUE, SI, SIGN, SU, SV, and XV. Referenced by main().
|
|
Definition at line 1986 of file flpt2.c. References Count, _FLOATING_STATUS::Data, EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, MINUS_SINGLE_INFINITY_VALUE, SI, SIGN, SU, SV, and XV. Referenced by main().
|
|
Definition at line 568 of file flpt.c. References AddSingle(), Count, _FLOATING_STATUS::Data, EI, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, and SI. Referenced by main().
|
|
Definition at line 711 of file flpt.c. References AddSingle(), Count, _FLOATING_STATUS::Data, EI, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, SI, and SIGN. Referenced by main().
|
|
Definition at line 942 of file flpt.c. References AddSingle(), Count, _FLOATING_STATUS::Data, EI, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, SI, and SIGN. Referenced by main().
|
|
Definition at line 1173 of file flpt.c. References AddSingle(), Count, _FLOATING_STATUS::Data, EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, FS, MINUS_SINGLE_INFINITY_VALUE, SIGN, SINGLE_SIGNAL_NAN_PREFIX, SV, and XV. Referenced by main().
|
|
Definition at line 1510 of file flpt.c. References Count, _FLOATING_STATUS::Data, EI, EO, EU, EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, MINUS_SINGLE_INFINITY_VALUE, MultiplySingle(), SI, SIGN, SO, SU, SV, XI, XO, and XV. Referenced by main().
|
|
Definition at line 2322 of file flpt.c. References Count, _FLOATING_STATUS::Data, DivideSingle(), EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, EZ, MINUS_SINGLE_INFINITY_VALUE, SI, SIGN, SO, SV, SZ, XV, and XZ. Referenced by main().
|
|
Definition at line 2781 of file flpt.c. References CC, CompareEqSingle(), CompareFSingle(), CompareLeSingle(), CompareLtSingle(), CompareNgeSingle(), CompareNgleSingle(), CompareNglSingle(), CompareNgtSingle(), CompareOleSingle(), CompareOltSingle(), CompareSeqSingle(), CompareSfSingle(), CompareUeqSingle(), CompareUltSingle(), CompareUnSingle(), Count, _FLOATING_STATUS::Data, EV, EXCEPTION_CONTINUE_SEARCH, EXCEPTION_EXECUTE_HANDLER, MINUS_SINGLE_INFINITY_VALUE, SIGN, SV, and XV. Referenced by main().
|
|
Referenced by Test24(). |
|
|