Page MenuHomePhabricator

[OpenCL] Remove mixed signedness atomic_fetch_ from opencl-c.h

Authored by svenvh on Mar 11 2021, 5:45 AM.



The OpenCL C specification v3.0.6 s6. mentions:

For atomic_fetch and modify functions with key = or, xor, and, min
and max on atomic type atomic_intptr_t, M is intptr_t, and on
atomic type atomic_uintptr_t, M is uintptr_t.

Remove the atomic_fetch_* overloads from opencl-c.h that mix intptr_t
and uintptr_t in the same declaration.

Diff Detail

Event Timeline

svenvh created this revision.Mar 11 2021, 5:45 AM
svenvh requested review of this revision.Mar 11 2021, 5:45 AM
stuart accepted this revision.Mar 11 2021, 4:18 PM

Looks good to me.

This revision is now accepted and ready to land.Mar 11 2021, 4:18 PM