Re: [PATCH 07/17] examples/vhost: use previous value atomic fetch operations

2023-03-02 Thread Maxime Coquelin
On 3/2/23 01:47, Tyler Retzlaff wrote: Use __atomic_fetch_{add,and,or,sub,xor} instead of __atomic_{add,and,or,sub,xor}_fetch when we have no interest in the result of the operation. Reduces unnecessary codegen that provided the result of the atomic operation that was not used. Change brings

[PATCH 07/17] examples/vhost: use previous value atomic fetch operations

2023-03-01 Thread Tyler Retzlaff
Use __atomic_fetch_{add,and,or,sub,xor} instead of __atomic_{add,and,or,sub,xor}_fetch when we have no interest in the result of the operation. Reduces unnecessary codegen that provided the result of the atomic operation that was not used. Change brings closer alignment with atomics available in