You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
138 B
C

#include "safemult.h"
int imult16(int16 a,int16 b,int16* c) {
int32 x=(int32)a*b;
if ((int16)x != x) return 0;
*c=x;
return 1;
}