]> rtime.felk.cvut.cz Git - sysless.git/commit
Update of bit operations primitives in cpu_def.h for h8300-elf-gcc (GCC) 4.3.2.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Sun, 11 Jan 2009 14:13:00 +0000 (15:13 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Tue, 16 Nov 2010 15:54:52 +0000 (16:54 +0100)
commit644ab15610472198047f17a00e0fde56ae759e3a
tree591bf9173149c87188d90e55e3274b50b814360c
parentde2b382075c16886a3ac92b4b34fbbcfa8a66d6f
Update of bit operations primitives in cpu_def.h for h8300-elf-gcc (GCC) 4.3.2.

This version provides more functionality, full array support
for char, short, int, long in clear_bit() and set_bit()
functions and the constrains used for bset and bclr instructions
allows compilation with newer GCC versions.
The fallback "o" case is not fully correct because it allows
register with displacement address but dummy "r" constrains
argument forces to prepare address in register anyway and should
eliminate problematic case. If internal GCC optimization is corrected
"o" case should be removed.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
arch/h8300/generic/defines/cpu_def.h