Last update January 22, 2007

Doc Comments /
Type



Difference (last change) (no other diffs, normal page display)

Deleted: 11d10
== Examples =

Deleted: 13,14d11
== Message =
Put your comments about the official/non-official page here.

Added: 15a13,14
== Messages =
Add your comments here...

Changed: 17,21c16
[[quote]real: largest hardware implemented floating point size
(Implementation Note: 80 bits for Intel CPU's)]
* On the PowerPC, a "real" is either 64 bits (currently) or 128 bits (eventually, or on AIX) - \
implemented using two 64-bit registers ("double-double"). There are no 80-bit FPU registers. \
The double-double (AIX) type is not IEEE 754 compliant, which makes it unsuitable for D.
=== real type size ===

Changed: 23,24c18
* On the SPARC, a "real" type is 128 bits and using IEEE-compliant quadruple precision. \
There are no 80-bit FPU registers.
real: largest hardware implemented floating point size (Implementation Note: 80 bits for Intel CPU's)

Changed: 26c20
[[quote]Integer Promotions are conversions of the following types:
* On the PowerPC, a "real" is either 64 bits (currently) or 128 bits (eventually, or on AIX) - implemented using two 64-bit registers ("double-double"). There are no 80-bit FPU registers. The double-double (AIX) type is not IEEE 754 compliant, which makes it unsuitable for D.

Changed: 28,30c22
char int
wchar int
dchar uint]
* On the SPARC, a "real" type is 128 bits and using IEEE-compliant quadruple precision. There are no 80-bit FPU registers.

Added: 31a24,29
=== Integer Promotions ===

Integer Promotions are conversions of the following types:
char int
wchar int
dchar uint

Deleted: 34,35d31
== Amendments =
You may add a link to this page on the DocumentationAmendments page to draw extra attention to your suggestion.

Changed: 38,39c34,35
*See the corresponding page in the D Specification: DigitalMars:d/type.html
*For more information about char(UTF-8)/wchar(UTF-16)/dchar(UTF-32), see UnicodeIssues
* Corresponding page in the D Specification
*Unicode Issues: more information about char(UTF-8)/wchar(UTF-16)/dchar(UTF-32)

Types

More Information

You need to talk about the representation of integers: 1's complement, 2's complement, sign magnitude, padding bits, trap representations, etc. What happens when you cast a signed negative integer to an unsigned integer, what operations can generate -0, and do the arithmetic operators use the value type or the object type? -- anonymous

Messages

Add your comments here...

real type size

real: largest hardware implemented floating point size (Implementation Note: 80 bits for Intel CPU's)

  • On the PowerPC, a "real" is either 64 bits (currently) or 128 bits (eventually, or on AIX) - implemented using two 64-bit registers ("double-double"). There are no 80-bit FPU registers. The double-double (AIX) type is not IEEE 754 compliant, which makes it unsuitable for D.
  • On the SPARC, a "real" type is 128 bits and using IEEE-compliant quadruple precision. There are no 80-bit FPU registers.

Integer Promotions

Integer Promotions are conversions of the following types:

 char 	int
 wchar 	int
 dchar 	uint
Why are not char and wchar promoted to uint as well ? Typo ?

Links


FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: January 22, 2007 21:26 (diff))