On Tue, 9 Jun 2026 at 15:26, Bertho Stultiens <[email protected]> wrote: > > The compiler will detect the constants. It will most certainly be able > to do quite a bit of folding if you let it.
I ran the original, and a version with all the casts removed through the Godbolt compiler explorer: https://www.godbolt.org/ (which even includes the relevant tricore gcc) The output was identical in both cases. So the good news is that it diesn't matter, it isn't costing us CPU cycles on the target hardware. But it is annoying if they do, in fact, have no effect. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
