Numeric#
2026-10-23
1 min read time
This page covers the numeric extended API, providing narrowing casts and arithmetic operations with overflow checking and saturation.
Header |
Content |
Since |
|---|---|---|
Casts a value and checks whether the value has changed |
libhipcxx 3.4 |
|
Represents the result of arithmetic operations that may overflow |
libhipcxx 3.0 |
|
Casts a value with overflow checking |
libhipcxx 3.0 |
|
Performs addition with overflow checking |
libhipcxx 3.4 |
|
Performs subtraction with overflow checking |
libhipcxx 3.4 |
|
Performs division with overflow checking |
libhipcxx 3.4 |
|
Performs multiplication with overflow checking |
libhipcxx 3.4 |
|
Performs saturating cast of a value with overflow checking |
libhipcxx 3.4 |
|
Performs saturating addition with overflow checking |
libhipcxx 3.4 |
|
Performs saturating subtraction with overflow checking |
libhipcxx 3.4 |
|
Performs saturating division with overflow checking |
libhipcxx 3.4 |
|
Performs saturating multiplication with overflow checking |
libhipcxx 3.4 |