Skip to content

Conversation

sayantn
Copy link
Contributor

@sayantn sayantn commented Aug 30, 2025

  • ADC/ADX
  • _mm512_reduce_mul_ph (missed)
  • _bswap{,64}
  • RDRAND/RDSEED
  • TBM
  • _mm_prefetch - It doesn't actually dereference the pointer argument, so it's safe
  • _mm_{l,s,m}fence - These can't introduce inconsistencies, as they are fences.
  • _mm_pause - It's like std::hint::spin_loop, so nothing unsafe here. Worst it can do is make the program slower

@rustbot
Copy link
Collaborator

rustbot commented Aug 30, 2025

r? @Amanieu

rustbot has assigned @Amanieu.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@Amanieu
Copy link
Member

Amanieu commented Aug 30, 2025

The prefetch intrinsics can also be made safe.

@sayantn
Copy link
Contributor Author

sayantn commented Aug 30, 2025

It has a pointer parameter, can it still be made safe?

Also, what about TSC, CPUID and the fence instructions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants