• Home
  • Raw
  • Download

Lines Matching refs:arithmetic

5 of numeric operations, including most common arithmetic operations and
11 functions for performing arithmetic and conversion operations that detect
15 arithmetic operations and conversions.
37 ### Performing checked arithmetic conversions
39 The `checked_cast` template converts between arbitrary arithmetic types, and is
47 ### Performing saturated (clamped) arithmetic conversions
49 The `saturated_cast` template converts between arbitrary arithmetic types, and
58 ### Enforcing arithmetic conversions at compile-time
79 ### Comparing values between arbitrary arithmetic types
82 comparisons between arbitrary arithmetic types. This allows you to perform
84 under the normal arithmetic promotion rules:
101 ### Calculating a buffer size (checked arithmetic)
106 a bit determining whether or not some arithmetic operation has occured that
122 ### Calculating clamped coordinates (non-sticky saturating arithmetic)
127 performant, non-sticky saturating arithmetic operations.
133 // Use clamped arithmetic since inset calculations might overflow.
143 retained across individual operations. As such, one arithmetic operation may
190 arithmetic type as an argument and will return whether the value is less
199 the `strict_cast` template, and can perform valid arithmetic comparisons
200 across any range of arithmetic types. `StrictNumeric` is the return type for
206 of the supplied arithmetic or StrictNumeric type.
214 data types, and contains overloads for basic arithmetic operations (i.e.: `+`,
233 with the following unary arithmetic methods, which return a new
290 The following variadic convenience functions, which accept standard arithmetic
291 or `CheckedNumeric` types, perform arithmetic operations, and return a
315 arithmetic types to `CheckedNumeric` types:
318 of the supplied arithmetic or directly convertible type.
323 (non-sticky saturating) arithmetic operations and conversions. The
326 overloads for basic arithmetic operations (i.e.: `+`, `-`, `*`, `/` for
328 operators for arithmetic types of any size. However, *the [variadic template
344 Most arithmetic operations saturate normally, to the numeric limit in the
355 to 0. (Effectively just an unbounded arithmetic-right-shift.)
363 with the following unary arithmetic methods, which return a new
379 * `RawValue()` - Returns the raw value as the underlying arithmetic type. This
388 The following variadic convenience functions, which accept standard arithmetic
389 or `ClampedNumeric` types, perform arithmetic operations, and return a
409 of the supplied arithmetic or directly convertible type.