File: imult32.3

package info (click to toggle)
libowfat 0.28-6
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 4,068 kB
  • sloc: ansic: 12,863; makefile: 16
file content (14 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.TH imult32 3
.SH NAME
imult32 \- integer multiplication with overflow checking
.SH SYNTAX
.B #include <safemult.h>

int \fBimult32\fP(int32 a,int32 b,int32* c);
.SH DESCRIPTION
imult32 does c=a*b and returns 1.

In case of an integer overflow, imult32 leaves \fIc\fR alone and returns
0.
.SH "SEE ALSO"
imult16(3), umult32(3), imult64(3)