search for: 44a93e74

Displaying 1 result from an estimated 1 matches for "44a93e74".

2014 Sep 06
5
[LLVMdev] cmpxchg instruction with pointer operands
cmpxchg only support exchange on int operands, but pointer values can be very useful here, e.g. stack<T> in a linked-list, the top can be atomic<Node<T>*>. in clang++, cmpxchg operations on atomic<T*> are bitcasted i64 and do the operation, which is ugly. Any reason or concern why cmpxchg doesn't support pointer operands? Thanks -------------- next part