06-11-2018 05:31 AM
@jamiva wrote:
BTW the second example by jwscs could be simplfied. Instead of using a logical shift, integer convertion, and addition it could be done like this
Make sure those enums are U8, of course.
By default (for reasons that remain a mystery to me) they are U16...
06-12-2018 05:35 AM
That merge function works well on U16's to U32 also, but the case can be harder to write.
/Y
06-12-2018 05:47 AM
Yes, U8's would make it easier. I was looking at that second example and thought the merge would give different results. But actually it was designed for U16's, and would need modification for U8's (simplification in this case) and U32's.
06-15-2018 03:50 PM
@jamiva wrote:
For a LUT, you would have to populate ALL the entries in the table regardless, and finding a typo in a 600+ LUT may be like trying to find Waldo.
06-15-2018 03:52 PM
That was too easy.