Changeset 14
- Timestamp:
- 10/06/08 15:39:07 (4 years ago)
- Files:
-
- branches/D1.0/src/compiler/dmd/typeinfo/ti_cdouble.d (modified) (1 diff)
- branches/D1.0/src/compiler/dmd/typeinfo/ti_cfloat.d (modified) (1 diff)
- branches/D1.0/src/compiler/dmd/typeinfo/ti_creal.d (modified) (1 diff)
- branches/D1.0/src/compiler/dmd/typeinfo/ti_double.d (modified) (1 diff)
- branches/D1.0/src/compiler/dmd/typeinfo/ti_float.d (modified) (1 diff)
- branches/D1.0/src/compiler/dmd/typeinfo/ti_real.d (modified) (1 diff)
- branches/D1.0/src/compiler/dmd/util/cpuid.d (modified) (1 diff)
- branches/D1.0/src/compiler/dmd/util/utf.d (modified) (2 diffs)
- trunk/import/object.di (modified) (1 diff)
- trunk/src/compiler/dmd/typeinfo/ti_cdouble.d (modified) (1 diff)
- trunk/src/compiler/dmd/typeinfo/ti_cfloat.d (modified) (1 diff)
- trunk/src/compiler/dmd/typeinfo/ti_creal.d (modified) (1 diff)
- trunk/src/compiler/dmd/typeinfo/ti_double.d (modified) (1 diff)
- trunk/src/compiler/dmd/typeinfo/ti_float.d (modified) (1 diff)
- trunk/src/compiler/dmd/typeinfo/ti_real.d (modified) (1 diff)
- trunk/src/compiler/dmd/util/utf.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/D1.0/src/compiler/dmd/typeinfo/ti_cdouble.d
r8 r14 14 14 } 15 15 16 static int _equals(cdouble f1, cdouble f2)16 static equals_t _equals(cdouble f1, cdouble f2) 17 17 { 18 18 return f1 == f2; branches/D1.0/src/compiler/dmd/typeinfo/ti_cfloat.d
r8 r14 13 13 } 14 14 15 static int _equals(cfloat f1, cfloat f2)15 static equals_t _equals(cfloat f1, cfloat f2) 16 16 { 17 17 return f1 == f2; branches/D1.0/src/compiler/dmd/typeinfo/ti_creal.d
r8 r14 15 15 } 16 16 17 static int _equals(creal f1, creal f2)17 static equals_t _equals(creal f1, creal f2) 18 18 { 19 19 return f1 == f2; branches/D1.0/src/compiler/dmd/typeinfo/ti_double.d
r8 r14 13 13 } 14 14 15 static int _equals(double f1, double f2)15 static equals_t _equals(double f1, double f2) 16 16 { 17 17 return f1 == f2 || branches/D1.0/src/compiler/dmd/typeinfo/ti_float.d
r8 r14 13 13 } 14 14 15 static int _equals(float f1, float f2)15 static equals_t _equals(float f1, float f2) 16 16 { 17 17 return f1 == f2 || branches/D1.0/src/compiler/dmd/typeinfo/ti_real.d
r8 r14 13 13 } 14 14 15 static int _equals(real f1, real f2)15 static equals_t _equals(real f1, real f2) 16 16 { 17 17 return f1 == f2 || branches/D1.0/src/compiler/dmd/util/cpuid.d
r8 r14 426 426 return s ? s[0 .. strlen(s)] : null; 427 427 } 428 429 string toString(invariant(char)* s)430 {431 return s ? s[0 .. strlen(s)] : null;432 }433 428 } 434 429 } branches/D1.0/src/compiler/dmd/util/utf.d
r8 r14 587 587 void validate(S)(in S s) 588 588 { 589 invariantlen = s.length;589 auto len = s.length; 590 590 for (size_t i = 0; i < len; ) 591 591 { … … 750 750 } 751 751 752 alias const(wchar)* wptr;752 alias wchar* wptr; 753 753 /** ditto */ 754 754 wptr toUTF16z(in char[] s) trunk/import/object.di
r10 r14 5 5 6 6 alias size_t hash_t; 7 alias intequals_t;7 alias bool equals_t; 8 8 9 9 alias invariant(char)[] string; trunk/src/compiler/dmd/typeinfo/ti_cdouble.d
r7 r14 14 14 } 15 15 16 static int _equals(cdouble f1, cdouble f2)16 static equals_t _equals(cdouble f1, cdouble f2) 17 17 { 18 18 return f1 == f2; trunk/src/compiler/dmd/typeinfo/ti_cfloat.d
r7 r14 13 13 } 14 14 15 static int _equals(cfloat f1, cfloat f2)15 static equals_t _equals(cfloat f1, cfloat f2) 16 16 { 17 17 return f1 == f2; trunk/src/compiler/dmd/typeinfo/ti_creal.d
r7 r14 15 15 } 16 16 17 static int _equals(creal f1, creal f2)17 static equals_t _equals(creal f1, creal f2) 18 18 { 19 19 return f1 == f2; trunk/src/compiler/dmd/typeinfo/ti_double.d
r7 r14 13 13 } 14 14 15 static int _equals(double f1, double f2)15 static equals_t _equals(double f1, double f2) 16 16 { 17 17 return f1 == f2 || trunk/src/compiler/dmd/typeinfo/ti_float.d
r7 r14 13 13 } 14 14 15 static int _equals(float f1, float f2)15 static equals_t _equals(float f1, float f2) 16 16 { 17 17 return f1 == f2 || trunk/src/compiler/dmd/typeinfo/ti_real.d
r7 r14 13 13 } 14 14 15 static int _equals(real f1, real f2)15 static equals_t _equals(real f1, real f2) 16 16 { 17 17 return f1 == f2 || trunk/src/compiler/dmd/util/utf.d
r7 r14 587 587 void validate(S)(in S s) 588 588 { 589 invariantlen = s.length;589 auto len = s.length; 590 590 for (size_t i = 0; i < len; ) 591 591 {
