Commit 2ccf818d by Logan Chien

Move atomicExchange under PERF_PROFILE

Change-Id: Id5ae40d4b072c57cac1a8e6e7767d3ca03deebe1 Reviewed-on: https://swiftshader-review.googlesource.com/20477Tested-by: 's avatarLogan Chien <loganchien@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent e3191014
......@@ -114,9 +114,9 @@ namespace sw
#if PERF_PROFILE
int64_t atomicExchange(int64_t volatile *target, int64_t value);
int atomicExchange(int volatile *target, int value);
#endif
int atomicExchange(int volatile *target, int value);
int atomicIncrement(int volatile *value);
int atomicDecrement(int volatile *value);
int atomicAdd(int volatile *target, int value);
......@@ -245,7 +245,6 @@ namespace sw
return ret;
#endif
}
#endif
inline int atomicExchange(volatile int *target, int value)
{
......@@ -257,6 +256,7 @@ namespace sw
return ret;
#endif
}
#endif
inline int atomicIncrement(volatile int *value)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment