Skip to content

Commit 9616401

Browse files
committed
Document min pointer width.
1 parent 6a42f5d commit 9616401

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/conditional-compilation.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,13 @@ on the endianness of the target's CPU.
169169

170170
### `target_pointer_width`
171171

172-
Key-value option set once with the target's pointer width in bits. For example,
173-
for targets with 32-bit pointers, this is set to `"32"`. Likewise, it is set
174-
to `"64"` for targets with 64-bit pointers.
172+
Key-value option set once with the target's pointer width in bits.
175173

176-
<!-- Are there targets that have a different bit number? -->
174+
Example values:
175+
176+
* `"16"`
177+
* `"32"`
178+
* `"64"`
177179

178180
### `target_vendor`
179181

src/types/numeric.md

+2
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ platform's pointer type. The theoretical upper bound on object and array size
3838
is the maximum `isize` value. This ensures that `isize` can be used to calculate
3939
differences between pointers into an object or array and can address every byte
4040
within an object along with one byte past the end.
41+
42+
`usize` and `isize` are at least 16-bits wide.

0 commit comments

Comments
 (0)