internal bool AtomicCompareExchangeInt128(long position, V128 expected, V128 desired) { if ((position & 0xf) != 0) { AbortWithAlignmentFault(position); } IntPtr ptr = TranslateWrite(position); return MemoryManagerPal.CompareAndSwap128(ptr, expected, desired) == expected; }
internal V128 AtomicLoadInt128(long position) { if ((position & 0xf) != 0) { AbortWithAlignmentFault(position); } IntPtr ptr = TranslateWrite(position); return MemoryManagerPal.AtomicLoad128(ptr); }