Source

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

The default branch has multiple heads

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