Skip to content

Commit 0e166d3

Browse files
committed
specify two's complement math and IEEE-754
1 parent a39c156 commit 0e166d3

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

spec/intro.dd

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $(OL
6666
)
6767

6868

69-
$(H2 Memory Model)
69+
$(H2 $(LINK2 memory-model, Memory Model))
7070

7171
$(P The $(I byte) is the fundamental unit of storage. Each byte has 8 bits and is stored at
7272
a unique address. A $(I memory location) is a sequence of one or more bytes of the exact size
@@ -109,7 +109,7 @@ $(H2 Memory Model)
109109
location during the operation.)
110110

111111

112-
$(H2 Object Model)
112+
$(H2 $(LNAME2 object-model, Object Model))
113113

114114
$(P An $(I object) is created in the following circumstances:
115115
)
@@ -140,6 +140,20 @@ $(H2 Object Model)
140140
object is nested within the other.
141141
)
142142

143+
$(H2 $(LNAME2 arithmetic, Arithmetic))
144+
145+
$(H3 Integer Arithmetic)
146+
147+
$(P Integer arithmetic is performed using
148+
$(LINK2 https://en.wikipedia.org/wiki/Two%27s_complement, two's complement) math.
149+
Integer overflow is not checked for.
150+
)
151+
152+
$(H3 Floating Point Arithmetic)
153+
154+
$(P Floating point arithmetic is performed using
155+
$(LINK2 https://en.wikipedia.org/wiki/IEEE_754, IEEE-754 floating point math).)
156+
143157
$(SPEC_SUBNAV_NEXT lex, Lexical)
144158
)
145159

0 commit comments

Comments
 (0)