From 17729edcc95113851960f88cb4d3292d561e7f79 Mon Sep 17 00:00:00 2001 From: Martin Nowak Date: Sat, 14 Dec 2013 01:18:02 +0100 Subject: [PATCH] remove NCEG specs --- d-floating-point.dd | 15 --------------- float.dd | 19 ------------------- 2 files changed, 34 deletions(-) diff --git a/d-floating-point.dd b/d-floating-point.dd index 4cfc726b5e..90a4d13705 100644 --- a/d-floating-point.dd +++ b/d-floating-point.dd @@ -243,21 +243,6 @@ $(LI $(D ulong getNaNPayload(real x)) -- returns the integer payload. Note that $(P $(I Never) store a pointer as an integer payload inside a NaN. The garbage collector will not be able to find it!) -$(H2 NCEG comparison operations) - -$(P As well as the usual $(D <), $(D >), $(D <=), and $(D >=) comparison operators, D also supports the "NCEG" operators. Most of them are the direct negation of the ordinary operators. Additionally, $(D <>), $(D <>=), $(D !<>), and $(D !<>=) are provided. These 8 new operators are different from the normal operators only when a NaN is involved, so for the most part they are quite obscure. They are useful mainly in eliminating the possibility of NaN before beginning a calculation. -The most useful relationships are probably: -$(UL -$(LI $(D x <>= y) is the same as $(D !isNaN(x) && !isNaN(y)), (except that signalling NaNs may be triggered by <>=).) -$(LI $(D x !<>= y) is the same as $(D isNaN(x) || isNaN(y)).) -) -If $(D y) is any compile-time constant (eg 0), these reduce to $(D !isNaN(x) and isNaN(x)). -Note that $(D x==x) is the same as $(D !isNaN(x)), and $(D x!=x) is the same as $(D isNaN(x)). -$(D abs(x) !< x.infinity) is the same as $(D isNaN(x) || isInfinity(x)) -The above relationships are useful primarily because they can be used in compile time functions. -Very few uses are known for the remaining NCEG operators. -) - $(H2 The IEEE Rounding Modes) $(P The rounding mode is controlled within a scope. Rounding mode will be restored to its previous state at the end of that scope. diff --git a/float.dd b/float.dd index 09397653d2..50e9b5cad3 100644 --- a/float.dd +++ b/float.dd @@ -122,25 +122,6 @@ $(H3 Exception Flags) $(P These flags can be set/reset via the functions in $(DPLLINK phobos/std_c_fenv.html, std.c.fenv).) -$(H3 Floating Point Comparisons) - - $(P In addition to the usual $(D <) $(D <)$(D =) - $(D >) $(D >)$(D =) $(D ==) $(D !=) comparison - operators, D adds more that are - specific to floating point. These are - $(D !<>=) - $(D <>) - $(D <>=) - $(D !<=) - $(D !<) - $(D !>=) - $(D !>) - $(D !<>) - and match the semantics for the - NCEG extensions to C. - See $(DDSUBLINK expression, floating_point_comparisons, Floating point comparisons). - ) - $(H3 $(LNAME2 floating-point-transformations, Floating Point Transformations)) $(P An implementation may perform transformations on