[WIN32] Atomics and inline assembler
#1
in xbmc/threads/Atomics.h/cpp there's a few different cas and Atomic instructions that all use assembler. What I'm curious about is why this is and why they're not using the provided Interlocked* functions in Windows?

I didn't find anything checking the git history.

This currently isn't an issue but it could possibly hurt the x64 effort I believe Karlsson2k is working on?
Reply
#2
probable reason: those functions weren't available on the xbox and this is legacy from then. no reason not to use the intrinsics as such.
Reply
#3
Too long ago for me, but you get the point https://github.com/Skixbmc/NOX/blob/mast...tomics.cpp
Silverstone Grandia GD02-MT | AMD A8-3850 | Breakaway Audio Enhancer, HK AVR-365 | HKTS 30, Philips 50PFL7956H/12 21:9 3D
Reply
#4
But why did you only add it for 64-bit skixbmc?
The janitor, cleaner of cruft, defender of style. Also known as the unfunny guy that doesn't understand signatures.
Reply
#5
Reuse code which has proven to work.
Silverstone Grandia GD02-MT | AMD A8-3850 | Breakaway Audio Enhancer, HK AVR-365 | HKTS 30, Philips 50PFL7956H/12 21:9 3D
Reply
#6
fair point Smile
Reply

Logout Mark Read Team Forum Stats Members Help
[WIN32] Atomics and inline assembler0