ckd_mul

Header: <stdckdint.h>

Computes the multiplication x × y and stores the result into *result. The multiplication is performed as if both operands were represented in a signed integer type with infinite range, and the result was then converted from this integer type to type1. If the value assigned to *result correctly represents the mathematical result of the operation, it returns false. Otherwise, it returns true. In this case, the value assigned to *result is the mathematical result of the operation wrapped around to the width of *result.

# Declarations

#define ckd_mul( result, a, b ) /* implementation-defined */
// exposed interface:
bool ckd_mul( type1* result, type2 a, type3 b );

(since C23)

# Parameters

# Return value

false if the value assigned to *result correctly represents the mathematical result of the multiplication, true otherwise.

# Example

This section is incompleteReason: no example

# See also