#include "cx/common.h"
#ifndef CX_SZMUL_BUILTIN
int cx_szmul_impl(
size_t a,
size_t b,
size_t *result
) {
if (a ==
0 || b ==
0) {
*result =
0;
return 0;
}
size_t r = a * b;
if (r / b == a) {
*result = r;
return 0;
}
else {
*result =
0;
return 1;
}
}
#endif