swift
c346d946 - Fix the build and implementation of the 16-byte atomics for MSVC.

Commit
4 years ago
Fix the build and implementation of the 16-byte atomics for MSVC. Credit for the cmake fix here goes to Saleem Abdulrasool. The substantive fix is embarrassing; I didn't pay close attention to the intrinsic's argument order and just assumed that the first argument for the replacement value was the low half (the part you'd find at index 0 if it were an array), but in fact it's the high half (the part you'd find at index 1). I also change the code to be much more reinterpret_casty, which isolates the type-punning mostly "within" the intrinsic, and which seems to match how other code uses it.
Author
Committer
Parents
Loading