[net.micro.amiga] short/long/int

rokicki@Navajo.UUCP (07/09/86)

About short/long/int . . .

I use typedef's to solve all these problems.  I will use int's when I
need at least sixteen bits because the int is often faster than either
of the other two, but all the rest of the time I use my own types
exclusively.  Then, to port, you simply change a few typedefs.  (I've
moved over 30,000 lines of code from a VAX Berkeley 4.2 system to the
Amiga with no trouble because of this . . .)  Whenever I want the
arithmetic to be performed with more than 16 bits, and the operands are
ints or smaller, I always coerce . . . it *might* make the program
slightly slower, but I haven't noticed it.

Now the question:  Why haven't I seen this in any other code?

-tom