libowfat/mult/imult32.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 imult32(int32 a,int32 b,int32* c) {
int64 x=(int64)a*b;
if ((int32)x != x) return 0;
*c=x;
return 1;
}