Skip to content

Commit 69ed7e0

Browse files
committed
Document min pointer width.
1 parent 5de92b1 commit 69ed7e0

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
@@ -165,11 +165,13 @@ on the endianness of the target's CPU.
165165

166166
### `target_pointer_width`
167167

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

172-
<!-- Are there targets that have a different bit number? -->
170+
Example values:
171+
172+
* `"16"`
173+
* `"32"`
174+
* `"64"`
173175

174176
### `target_vendor`
175177

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)