On Mon, 5 May 2008 01:16:43 UTC, Tomás Ó hÉilidhe <toe@[EMAIL PROTECTED]
>
wrote:
>
> I'll try to summarise this as best I can, as my last thread wasn't
> very to-the-point:
You does simply not understund what C ist.
C comes with a set of different data types usable for fixed point
arithmetic:
unsigned char - fits all arithmetic needs for any unsigned value
in the range of 0 to UCHAR_MIN
signed char - fits all arithmetic needs for any signed value
in the range of MIN_CHAR to MAX_CHAR
unsigned int - same as unsigned char, but at least 16 bit wide
signed int - same as signed char, but at least 16 bit wide
long - like above but at least 32 bit
long long - like above but may be wider.
There is no need to invent other data types. A programmer with brain
for only 1 penny will decide to use the right data type that fits the
needs for the value it has to fit in. This will be char if the range
of the value fits in, it will be int, long or long long otherwise. It
doesn't matter that the ma****ne has only one single register or 4096
of them to wor with, it does'nt matter if the natural width of a
register is 8, 9, 16, 18, 24, 32, 36, 48, 64, 128 or 256 whatever
bit. Either one owns a compiler that works trusty for the job it has
to do or assembly is the solution.
It is relevant to write standard complilant code whereever it is
possible, use standard compilant data types, use commononly used code
constructs because things are changing constantly.
- tomorrow the program has to run under another CPU - the standard has
foreseen that, so only a new translation cycle has to be done
and anything works again without unforseen restrictions
- tomorrow you gets fired because you has written constantly
keywords in an unusual order and the new boss dosn't like that
because it makes fixing your ****y code more cost intensive.
There is further really no need to invent other order of calles, type
as the whole C community uses since BCPL, the predecessor of was
foundet.
Except one will blame himself as ignorant and ties to obfuscate his
****y code
Be sure you'll gets never hired here based on your misbehavior in
follllowing common practise, unability to write readable code and
kidding.
--
Tschau/Bye
Herbert
Visit http://www.ecomstation.de
the home of german eComStation
eComStation 1.2R Deutsch ist da!


|