Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not 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

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