Lines Matching refs:coresize
124 * insn_t *sim_alloc_bufs( unsigned int nwars, unsigned int coresize,
126 * insn_t *sim_alloc_bufs2( unsigned int nwars, unsigned int coresize,
133 * coresize -- size of core
137 * it defaults to min(1,coresize/16).
167 sim_alloc_bufs2( unsigned int nwars, unsigned int coresize,
175 Core_Mem = (insn_t*)malloc( sizeof(insn_t) * coresize );
190 Coresize = coresize;
200 sim_alloc_bufs( unsigned int nwars, unsigned int coresize,
204 pspace = coresize/16 == 0 ? 1 : coresize/16;
205 return sim_alloc_bufs2( nwars, coresize, processes, cycles, pspace );
536 * x, y must be in 0..coresize-1 for the following macros:
538 * INCMOD(x): x = x+1 mod coresize
539 * DECMOD(x): x = x-1 mod coresize
540 * ADDMOD(z,x,y): z = x+y mod coresize
541 * SUBMOD(z,x,y): z = x-y mod coresize
547 #define INCMOD(x) do { if ( ++(x) == coresize ) (x) = 0; } while (0)
549 #define ADDMOD(z,x,y) do { (z) = (x)+(y); if ((z)>=coresize) (z) -= coresize; } while (0)
550 #define SUBMOD(z,x,y) do { (z) = (x)-(y); if ((int)(z)<0) (z) += coresize; } while (0)
644 unsigned int coresize, coresize1; /* size of core, size of core - 1 */
661 coresize = Coresize;
708 dis1( debug_line, insn, coresize);
1133 core[db].b = (rb_b * ra_b) % coresize;
1135 core[db].a = (rb_a * ra_a) % coresize;
1138 core[db].b = (rb_b * ra_b) % coresize;
1141 core[db].a = (rb_a * ra_b) % coresize;
1143 core[db].b = (rb_b * ra_a) % coresize;
1146 core[db].a = (rb_a * ra_b) % coresize;