nopromote 0.1.2
A library to remove unnecessary upcasting.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
nopromote
A simple d library that provides integer types that don't promote to a signed 32 bit integer when operated on. Currently it only supports the ldc2 compiler.
Specifics
Commutative operations (+, *, &, |) will always return a value that is the size and signedness of the larger operand. If the size is equal, or the operation is not commutative (/, >>, -) it maintains the size and signedness of the left hand side.
- Registered by Isaac Patrick Bunsen Stepanek
- 0.1.2 released 3 years ago
- ishax-kos/nopromote
- CC0 1.0 Universal
- Authors:
- Dependencies:
- none
- Versions:
-
0.2.0 2021-Sep-15 0.1.2 2021-Aug-29 0.1.1 2021-Jun-11 0.1.0 2021-Jun-08 ~main 2021-Sep-15 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
14 downloads total
-
- Score:
- 0.3
- Short URL:
- nopromote.dub.pm