2019-03-25 11:24:04 +00:00
|
|
|
/**
|
|
|
|
* Author......: See docs/credits.txt
|
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2019-03-25 13:08:59 +00:00
|
|
|
#include "common.h"
|
|
|
|
#include "types.h"
|
2019-03-25 11:24:04 +00:00
|
|
|
#include "emu_general.h"
|
|
|
|
|
2021-04-20 15:47:44 +00:00
|
|
|
u32 hc_atomic_dec (u32 *p)
|
2019-03-25 11:24:04 +00:00
|
|
|
{
|
2019-04-02 09:24:22 +00:00
|
|
|
return p[0]--;
|
2019-03-25 11:24:04 +00:00
|
|
|
}
|
|
|
|
|
2021-04-20 15:47:44 +00:00
|
|
|
u32 hc_atomic_inc (u32 *p)
|
2019-03-25 11:24:04 +00:00
|
|
|
{
|
2019-04-02 09:24:22 +00:00
|
|
|
return p[0]++;
|
2019-03-25 11:24:04 +00:00
|
|
|
}
|
|
|
|
|
2019-03-25 20:57:10 +00:00
|
|
|
size_t get_global_id (u32 dimindx __attribute__((unused)))
|
2019-03-25 11:24:04 +00:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-03-25 20:57:10 +00:00
|
|
|
size_t get_local_id (u32 dimindx __attribute__((unused)))
|
2019-03-25 11:24:04 +00:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-03-25 20:57:10 +00:00
|
|
|
size_t get_local_size (u32 dimindx __attribute__((unused)))
|
2019-03-25 11:24:04 +00:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|