Using asm or intrinsic C functions from Nim

2023-08-25 Thread mratsim
> I am looking into using the PDEP/PEXT machine instructions as part of Nim > proc:s and it seems to me that the asm keyword requires that you somehow know > which registers contains which variable. No you can use GCC/Clang extended ASM.

Using asm or intrinsic C functions from Nim

2023-08-25 Thread radekm
Yes, I think using C intrinsics makes sense. Same approach is used by

Using asm or intrinsic C functions from Nim

2023-08-25 Thread Yardanico
> you somehow know which registers contains which variable. You can use the backticks to get existing variables, see the docs at

Using asm or intrinsic C functions from Nim

2023-08-25 Thread koistinen
I am looking into using the PDEP/PEXT machine instructions as part of Nim proc:s and it seems to me that the `asm` keyword requires that you somehow know which registers contains which variable. So I am thinking using the intrinsic C functions like: `unsigned __int64 _pext_u64(unsigned __int64