fixmul(3)

NAME
fixmul

SYNOPSIS
#include <allegro.h>

fixed fixmul(fixed x, fixed y);

DESCRIPTION
A fixed point value can be multiplied or divided by an integer with the normal '*' and '/' operators. To multiply two fixed point values, though, you must use this function. If an overflow or division by zero occurs, errno will be set and the maximum possible value will be returned, but errno is not cleared if the operation is successful. This means that if you are going to test for overflow you should set errno=0 before calling fixmul().

SEE ALSO
fixadd(3), fixsub(3), fixdiv(3)