Re: Remainder ( % ) operator and GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Frans Englich <frans.englich@xxxxxxxxx> writes:

> > Don't use '%'.  It is machine dependent when used with a negative
> > number.
> 
> What should one use instead? What is the portable, machine-independent 
> alternative?

The div function.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux