News for hackers. Stuff that matters.
Re:The least interesting part about AVX-512 is the 512 bits ... by mmozeiko on Monday June 19, 2023 @10:27PM (#36399010)
Here's a fancy tricky from LLVM source: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Targ...

  #define A 0xf0
  #define B 0xcc
  #define C 0xaa
And then you can build immediate for VPTERNLOG operation by writing bitwise expression with A/B/C values in source code.

For example, A^B^C=150. A^(~B&C)=210. And so on...

Also mentioned by Fabian here: https://twitter.com/rygorous/status/1187032693944410114

There are no comments on this comment yet.