libowfat/mult/imult16.c
leitner 19202d2320 turns out the imult routines (which I never used) were incorrect.
Noted by Matthew Dempsky
  open_* from open.h now open in large file mode
2005-07-15 20:57:07 +00:00

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;
}