CODECONVENTIONS.md: 16-bit ports exist now.
This commit is contained in:
parent
2474c2ae94
commit
b85bf25e97
@ -39,9 +39,9 @@ Header files:
|
|||||||
Type names and declarations:
|
Type names and declarations:
|
||||||
- When defining a type, put '_t' after it.
|
- When defining a type, put '_t' after it.
|
||||||
|
|
||||||
Integer types: Micro Python runs on 32 and 64 bit machines (and one day
|
Integer types: Micro Python runs on 16, 32, and 64 bit machines, so it's
|
||||||
maybe 16 bit), so it's important to use the correctly-sized (and signed)
|
important to use the correctly-sized (and signed) integer types. The
|
||||||
integer types. The general guidelines are:
|
general guidelines are:
|
||||||
- For most cases use mp_int_t for signed and mp_uint_t for unsigned
|
- For most cases use mp_int_t for signed and mp_uint_t for unsigned
|
||||||
integer values. These are guaranteed to be machine-word sized and
|
integer values. These are guaranteed to be machine-word sized and
|
||||||
therefore big enough to hold the value from a Micro Python small-int
|
therefore big enough to hold the value from a Micro Python small-int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user