Source

linux-scalability-benchmarks / libowfat / mult / imult32.c

The default branch has multiple heads

1
2
3
4
5
6
7
8
#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;
}