nopromote 0.2.0
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.
- 0.2.0 released 4 years ago
- ishax-kos/nopromote
- CC0 1.0 Universal
- Authors:
- Dependencies:
- none
- Versions:
- 
						
 Show all 5 versions0.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 
- 
								3 downloads this week 
- 
								3 downloads this month 
- 
								19 downloads total 
 
- 
								
- Score:
- 0.4
- Short URL:
- nopromote.dub.pm