cell
struct cel *cell; /* pointer to the dungeon storage */
if (cell[p * MAXX * MAXY + i * MAXY + j].item == l)
lwrite((char *) &cell[k * MAXX * MAXY], sizeof(struct cel) * MAXY * MAXX);
lrfill((char *) &cell[k * MAXX * MAXY], sizeof(struct cel) * MAXY * MAXX);
extern struct cel *cell;
cell = (struct cel *) malloc(sizeof(struct cel) * (MAXLEVEL + MAXVLEVEL) * MAXX * MAXY);
if (cell == 0)
pcel = &cell[level * MAXX * MAXY]; /* pointer to this level's
pcel = &cell[level * MAXX * MAXY]; /* pointer to this level's
typedef cell regcell;
cell *bp, *sp;
static cell curscreen[B_SIZE]; /* 1 => standout (or otherwise marked) */
cell *p;
cell board[B_SIZE]; /* 1 => occupied, 0 => empty */
cell *p;
extern cell board[B_SIZE]; /* 1 => occupied, 0 => empty */
int cell[0x100];
return (ei->cell[c & 0xFF] & 0x1) ? 2 : 1;
return (ei->cell[c & 0xFF] & 0x2) ? 1 : 0;
ei->cell[n & 0xFF] |= i;
(SHIFT7BIT((c)) ? -1 : (((ei)->cell[(c)] & EI_MASK) - 1))
ei->cell[(c)] & (EI_DIRECT | EI_OPTION | EI_SPACE)))
(c < 0x80 && ei->cell[(c)] & (EI_DIRECT | EI_SPACE))))
uint16_t cell[0x80];
ei->cell[*s & 0x7f] |= flag; \
pr("%#" PRIx32 "%s", fdt32_to_cpu(cell[j]),
const uint32_t *cell = (const uint32_t *)prop->data;
int cell;
cell = atomic_add_int_nv(&b->gb_usedcells, 1) - 1;
cell += b->gb_firstcell;
(cell / gc->gc_cellsperline) * gc->gc_cellheight;
(cell % gc->gc_cellsperline) * gc->gc_cellstride;
int cell, cx, cy, idx, bi;
cell = b->gb_map[c - 33];
if (cell == -1) {
cy = cell & 0xffff;
cx = (cell >> 16) & 0xffff;
int i, idx, bi, cell;
cell = b->gb_map[c - 33];
if (cell == -1) {
cell = atomic_add_int_nv(&b->gb_usedcells, 1) - 1;
b->gb_map[c - 33] = cell;
cell += b->gb_firstcell;
scp->sc_putchar(&scp->sc_cache_ri, cell, 0, c, attr);
cell += b->gb_firstcell;
src = scp->sc_cache + cell * scp->sc_cache_ri.ri_yscale;
src = scp->sc_cache + cell * scp->sc_cache_ri.ri_yscale;
__builtin_memcpy(&old, &kcsan_cpus[i].cell, sizeof(old));
__builtin_memcpy(&cpu->cell, &new, sizeof(new));
__builtin_memset(&cpu->cell, 0, sizeof(new));
csan_cell_t cell;
uint32_t cell = 0xdeadbeef;
ATF_REQUIRE_EQ(do_ucas_32(&cell, 0xdeadbeef, 0xbeefdead, &actual), 0);
ATF_REQUIRE(cell == 0xbeefdead);
uint64_t cell = 0xdeadbeef;
ATF_REQUIRE_EQ(do_ucas_64(&cell, 0xdeadbeef, 0xbeefdead, &actual), 0);
ATF_REQUIRE(cell == 0xbeefdead);
uint32_t cell = 0xa5a5a5a5;
ATF_REQUIRE_EQ(do_ucas_32(&cell, 0xdeadbeef, 0xbeefdead, &actual), 0);
ATF_REQUIRE(cell == 0xa5a5a5a5);
uint64_t cell = 0xa5a5a5a5;
ATF_REQUIRE_EQ(do_ucas_64(&cell, 0xdeadbeef, 0xbeefdead, &actual), 0);
ATF_REQUIRE(cell == 0xa5a5a5a5);
#define read_test_cell(cell) (cell)->test_cell
#define write_test_cell(cell, v) (cell)->test_cell = (v)
memory_cell_check_guard(const struct memory_cell * const cell)
return cell->guard0 == ULONG_MAX &&
cell->guard1 == ULONG_MAX;
struct memory_cell cell = memory_cell_initializer;
write_test_cell(&cell, test_cell_val8);
ATF_REQUIRE_EQ(do_ufetch_8(&cell.val8[index8], &res), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
struct memory_cell cell = memory_cell_initializer;
write_test_cell(&cell, test_cell_val16);
ATF_REQUIRE_EQ(do_ufetch_16(&cell.val16[index16], &res), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
struct memory_cell cell = memory_cell_initializer;
write_test_cell(&cell, test_cell_val32);
ATF_REQUIRE_EQ(do_ufetch_32(&cell.val32[index32], &res), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
struct memory_cell cell = memory_cell_initializer;
write_test_cell(&cell, test_cell_val64);
ATF_REQUIRE_EQ(do_ufetch_64(&cell.val64, &res), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
struct memory_cell cell = memory_cell_initializer;
ATF_REQUIRE_EQ(do_ustore_8(&cell.val8[index8], test_pattern8), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
ATF_REQUIRE(read_test_cell(&cell) == test_cell_val8);
struct memory_cell cell = memory_cell_initializer;
ATF_REQUIRE_EQ(do_ustore_16(&cell.val16[index16], test_pattern16), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
ATF_REQUIRE(read_test_cell(&cell) == test_cell_val16);
struct memory_cell cell = memory_cell_initializer;
ATF_REQUIRE_EQ(do_ustore_32(&cell.val32[index32], test_pattern32), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
ATF_REQUIRE(read_test_cell(&cell) == test_cell_val32);
struct memory_cell cell = memory_cell_initializer;
ATF_REQUIRE_EQ(do_ustore_64(&cell.val64, test_pattern64), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
ATF_REQUIRE(read_test_cell(&cell) == test_cell_val64);
uint32_t cell = 0xdeadbeef;
ATF_REQUIRE_EQ(do_ucas_32(&cell, 0xdeadbeef, 0xbeefdead, &actual), 0);
ATF_REQUIRE(cell == 0xbeefdead);
uint64_t cell = 0xdeadbeef;
ATF_REQUIRE_EQ(do_ucas_64(&cell, 0xdeadbeef, 0xbeefdead, &actual), 0);
ATF_REQUIRE(cell == 0xbeefdead);
uint32_t cell = 0xa5a5a5a5;
ATF_REQUIRE_EQ(do_ucas_32(&cell, 0xdeadbeef, 0xbeefdead, &actual), 0);
ATF_REQUIRE(cell == 0xa5a5a5a5);
uint64_t cell = 0xa5a5a5a5;
ATF_REQUIRE_EQ(do_ucas_64(&cell, 0xdeadbeef, 0xbeefdead, &actual), 0);
ATF_REQUIRE(cell == 0xa5a5a5a5);
#define read_test_cell(cell) (cell)->test_cell
#define write_test_cell(cell, v) (cell)->test_cell = (v)
memory_cell_check_guard(const struct memory_cell * const cell)
return cell->guard0 == ULONG_MAX &&
cell->guard1 == ULONG_MAX;
struct memory_cell cell = memory_cell_initializer;
write_test_cell(&cell, test_cell_val8);
ATF_REQUIRE_EQ(do_ufetch_8(&cell.val8[index8], &res), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
struct memory_cell cell = memory_cell_initializer;
write_test_cell(&cell, test_cell_val16);
ATF_REQUIRE_EQ(do_ufetch_16(&cell.val16[index16], &res), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
struct memory_cell cell = memory_cell_initializer;
write_test_cell(&cell, test_cell_val32);
ATF_REQUIRE_EQ(do_ufetch_32(&cell.val32[index32], &res), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
struct memory_cell cell = memory_cell_initializer;
write_test_cell(&cell, test_cell_val64);
ATF_REQUIRE_EQ(do_ufetch_64(&cell.val64, &res), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
struct memory_cell cell = memory_cell_initializer;
ATF_REQUIRE_EQ(do_ustore_8(&cell.val8[index8], test_pattern8), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
ATF_REQUIRE(read_test_cell(&cell) == test_cell_val8);
struct memory_cell cell = memory_cell_initializer;
ATF_REQUIRE_EQ(do_ustore_16(&cell.val16[index16], test_pattern16), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
ATF_REQUIRE(read_test_cell(&cell) == test_cell_val16);
struct memory_cell cell = memory_cell_initializer;
ATF_REQUIRE_EQ(do_ustore_32(&cell.val32[index32], test_pattern32), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
ATF_REQUIRE(read_test_cell(&cell) == test_cell_val32);
struct memory_cell cell = memory_cell_initializer;
ATF_REQUIRE_EQ(do_ustore_64(&cell.val64, test_pattern64), 0);
ATF_REQUIRE(memory_cell_check_guard(&cell));
ATF_REQUIRE(read_test_cell(&cell) == test_cell_val64);