How to efficiently convert an 8-bit bitmap to array of 0/1 integers with x86 SIMD
问题 I want to convert 8 bit integer to an array of size 8 with each value containing the bit value of an integer. For example: I have int8_t x = 8; I want to convert this to int8_t array_x = {0,0,0,0,1,0,0,0}; This has to be done efficiently, since this calculation is part of signal processing block. Is there a efficient way to do this? I did check the blend the instruction. It didn't suit my requirement when having array elements of size 8-bit. development platform is AMD Ryzen. 回答1: "Inverse