On Sun, 6 Mar 2005 20:52, Jesper Hansen wrote:
I know, and you also get the wrong result !
That's why the typecasts are needed. (Or a different way to obtain the
correct result).
I think it MUST be possible to do this in the assembler (or preprocessor
or
whatever,
it's SO easy in C.
Well you are asking the _assembler_ to compute an expression in C.
The assembler does assembly, not C :)
(My impression is the C compiler computes the constants not the
preprocessor)
You could put the assembly inside inline assembly clauses in a C file.