src/ucx.c

changeset 331
3b985a4eb05b
parent 273
9c1591b3c4a4
equal deleted inserted replaced
330:d2bbf907a189 331:3b985a4eb05b
43 * POSSIBILITY OF SUCH DAMAGE. 43 * POSSIBILITY OF SUCH DAMAGE.
44 */ 44 */
45 45
46 #include "ucx/ucx.h" 46 #include "ucx/ucx.h"
47 47
48 #ifndef UCX_MUL_BUILTIN 48 int ucx_szmul_impl(size_t a, size_t b, size_t *result) {
49 int ucx_szmul(size_t a, size_t b, size_t *result) {
50 if(a == 0 || b == 0) { 49 if(a == 0 || b == 0) {
51 *result = 0; 50 *result = 0;
52 return 0; 51 return 0;
53 } 52 }
54 size_t r = a * b; 53 size_t r = a * b;
58 } else { 57 } else {
59 *result = 0; 58 *result = 0;
60 return 1; 59 return 1;
61 } 60 }
62 } 61 }
63 #endif
64 62

mercurial