Re: [patch,avr] Tweak unsigned compares with consts that are 0 mod 256.

2024-09-16 Thread Georg-Johann Lay
Am 16.09.24 um 13:04 schrieb Denis Chertykov: вс, 15 сент. 2024 г. в 19:32, Georg-Johann Lay : Unsigned comparisons may skip comparing the lower bytes when the according bytes of the constant are all zeros. For example, uint16 >= 0x1200 is true iff hi8 (uint16) >= hi8 (0x1200)

Re: [patch, avr] Tweak unsigned compares with consts that are 0 mod 256.

2024-09-16 Thread Denis Chertykov
вс, 15 сент. 2024 г. в 19:32, Georg-Johann Lay : > > Unsigned comparisons may skip comparing the lower bytes when > the according bytes of the constant are all zeros. For example, > > uint16 >= 0x1200 > > is true iff > > hi8 (uint16) >= hi8 (0x1200) > > and similar for uint16 < 0x1200.

[patch,avr] Tweak unsigned compares with consts that are 0 mod 256.

2024-09-15 Thread Georg-Johann Lay
Unsigned comparisons may skip comparing the lower bytes when the according bytes of the constant are all zeros. For example, uint16 >= 0x1200 is true iff hi8 (uint16) >= hi8 (0x1200) and similar for uint16 < 0x1200. Some comparisons against constants that are an integral power of 256