2010-06-03 22:46:59 +00:00
|
|
|
/* this header file comes from libowfat, http://www.fefe.de/libowfat/ */
|
2003-08-22 15:03:10 +00:00
|
|
|
#ifndef _SAFEMULT_H
|
|
|
|
#define _SAFEMULT_H
|
|
|
|
|
|
|
|
#include "uint16.h"
|
|
|
|
#include "uint32.h"
|
|
|
|
#include "uint64.h"
|
|
|
|
|
2012-02-07 17:02:40 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2003-09-05 21:25:51 +00:00
|
|
|
/* return 0 for overflow, 1 for ok */
|
2003-08-22 15:03:10 +00:00
|
|
|
int umult16(uint16 a,uint16 b,uint16* c);
|
|
|
|
int imult16( int16 a, int16 b, int16* c);
|
|
|
|
|
|
|
|
int umult32(uint32 a,uint32 b,uint32* c);
|
|
|
|
int imult32( int32 a, int32 b, int32* c);
|
|
|
|
|
|
|
|
int umult64(uint64 a,uint64 b,uint64* c);
|
|
|
|
int imult64( int64 a, int64 b, int64* c);
|
|
|
|
|
2012-02-07 17:02:40 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2003-08-22 15:03:10 +00:00
|
|
|
#endif
|