11-15-2002
Thanks.... fixed (again!)......
4 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
New submission for flash intro:
What do you think? (2 Replies)
Discussion started by: Neo
2 Replies
2. Tips and Tutorials
So you want to learn a unix scripting language that you'll be able to use in any situation? Perl is your answer !
This is a little intro to installing CPAN modules. If you don't know what CPAN is, check out http://search.cpan.org/. Basicly, it is a massive archive of perl libraries that will... (0 Replies)
Discussion started by: obitus
0 Replies
3. What is on Your Mind?
Houdy everyone!
yes I'm a newbie here
I'm a big fan of the BSD's, in particular NetBSD. Don't have much use for Linux or the various "distro's" of it ( no flame intended ). I'm going to try Solaris 10 on an i386 box real soon.
By day I'm a CAD tech for a local government entity, by night... (0 Replies)
Discussion started by: Mark Thomas
0 Replies
4. What is on Your Mind?
Hey,
I had been working in UNIX environments from 1997 to 2007.
From 1997 - 1999 I worked as an Operator in a Solaris environment.
From 1999 - March 2007 I worked mostly in HP-UX, some SCO, some RedHat Linux as an Operator/Programmer(scripter)/Admin.
No luck finding work, so I am going... (0 Replies)
Discussion started by: uwoodyjk
0 Replies
fixdiv(3alleg4) Allegro manual fixdiv(3alleg4)
NAME
fixdiv - Fixed point division. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
fixed fixdiv(fixed x, fixed y);
DESCRIPTION
A fixed point value can be divided by an integer with the normal `/' operator. To divide two fixed point values, though, you must use this
function. If a 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 division by zero you should set `errno=0' before calling fix-
div(). Example:
fixed result;
/* This will put 0.06060 `result'. */
result = fixdiv(itofix(2), itofix(33));
/* This will put 0 into `result'. */
result = fixdiv(0, itofix(-30));
/* Sets `errno' and puts -32768 into `result'. */
result = fixdiv(itofix(-100), itofix(0));
ASSERT(!errno); /* This will fail. */
RETURN VALUE
Returns the result of dividing `x' by `y'. If `y' is zero, returns the maximum possible fixed point value and sets `errno' to ERANGE.
SEE ALSO
fixadd(3alleg4), fixsub(3alleg4), fixmul(3alleg4), exfixed(3alleg4)
Allegro version 4.4.2 fixdiv(3alleg4)