import type { FnN } from "@thi.ng/api" ; param x export const splat4_24 = ( x ) => ( x & 0xf ) * 0x111111 ; param x export const splat4_32 = ( x ) => ( ( x & 0xf ) * 0x11111111 ) >>> 0 ; param x export const splat8_24 = ( x ) => ( x & 0xff ) * 0x010101 ; param x export const splat8_32 = ( x ) => ( ( x & 0xff ) * 0x01010101 ) >>> 0 ; param x export const splat16_32 = ( x ) => ( ( x &= 0xffff ) , ( ( x << 16 ) | x ) >>> 0 ) ; param x export const same4 = ( x ) => ( ( x >> 4 ) & 0xf ) === ( x & 0xf ) ; param x export const same8 = ( x ) => ( ( x >> 8 ) & 0xff ) === ( x & 0xff ) ; param x export const interleave4_12_24 = ( x ) => ( ( x & 0xf00 ) * 0x1100 ) | ( ( x & 0xf0 ) * 0x110 ) | ( ( x & 0xf ) * 0x11 ) ; param x export const interleave4_16_32 = ( x ) => ( ( ( x & 0xf000 ) * 0x11000 ) | ( ( x & 0xf00 ) * 0x1100 ) | ( ( x & 0xf0 ) * 0x110 ) | ( ( x & 0xf ) * 0x11 ) ) >>> 0 ;