import type { FnN } from "@thi.ng/api" ; /**
 * Converts 32bit unsigned int to Gray code (reflected binary). Gray
 * codes of successive values always have a Hamming distance of 1 (i.e.
 * only 1 bit changes at a time).
 *
 *  https param x export const encodeGray32 = ( x ) => ( x ^ ( x >>> 1 ) ) >>> 0 ; /**
 * Converts 32bit Gray code to binary / unsigned int.
 *
 *  https export const decodeGray32 = ( x ) => { x = x ^ ( x >>> 16 ) ; x = x ^ ( x >>> 8 ) ; x = x ^ ( x >>> 4 ) ; x = x ^ ( x >>> 2 ) ; x = x ^ ( x >>> 1 ) ; return x >>> 0 ; } ;