mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 19:48:16 +04:00
Gray conversion is b[i] = g[i] XOR g[i+1] XOR ... XOR g[n-1] Make the code a 3 liner. For more details see [1]. [1] https://en.wikipedia.org/wiki/Gray_code#Converting_to_and_from_Gray_code Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/23984 Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>