/dports/devel/gdb/gdb-11.1/gdb/testsuite/gdb.arch/ |
H A D | sparc64-adi.c | 45 #define MAPSIZE 8192 macro 98 char *maddr = (char *)mmap (NULL, MAPSIZE, PROT_READ|PROT_WRITE, in main() 103 if (mprotect (shmaddr, MAPSIZE, PROT_READ|PROT_WRITE|PROT_ADI)) in main() 109 if (memory_fill (maddr, MAPSIZE, PAT) != 0) in main() 111 caddr_t vmaddr = adi_set_version (maddr, MAPSIZE, 0x8); in main() 114 haddr = (char*) memalign (MAPSIZE, MAPSIZE); in main() 116 if (mprotect (shmaddr, MAPSIZE, PROT_READ|PROT_WRITE|PROT_ADI)) in main() 122 if (memory_fill (haddr, MAPSIZE, PAT) != 0) in main() 124 adi_clr_version (haddr, MAPSIZE); in main()
|
/dports/devel/gdb/gdb-11.1/gdb/testsuite/gdb.base/ |
H A D | coremaker.c | 34 #define MAPSIZE (8 * 1024) macro 52 const unsigned char filler_ro[MAPSIZE] = {1, 2, 3, 4, 5, 6, 7, 8}; 68 buf1 = (char *) malloc (MAPSIZE); in mmapdata() 69 for (j = 0; j < MAPSIZE; ++j) in mmapdata() 83 write (fd, buf1, MAPSIZE); in mmapdata() 87 buf2 = (char *) mmap (0, MAPSIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in mmapdata() 96 buf2ro = (char *) mmap (0, MAPSIZE, PROT_READ, MAP_PRIVATE, fd, 0); in mmapdata() 107 for (j = 0; j < MAPSIZE; ++j) in mmapdata() 120 buf3 = mmap (NULL, MAPSIZE, PROT_READ | PROT_WRITE, in mmapdata()
|
/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/tests/ |
H A D | shadowcasting_test.cpp | 26 static void oldCastLight( float ( &output_cache )[MAPSIZE * SEEX][MAPSIZE * SEEY], in oldCastLight() 86 const float ( &transparency_cache )[MAPSIZE * SEEX][MAPSIZE * SEEY] ) in bresenham_visibility_check() 106 float ( &transparency_cache )[MAPSIZE * SEEX][MAPSIZE * SEEY], in randomly_fill_transparency() 223 float seen_squares_control[MAPSIZE * SEEX][MAPSIZE * SEEY] = {}; in shadowcasting_runoff() 224 float seen_squares_experiment[MAPSIZE * SEEX][MAPSIZE * SEEY] = {}; in shadowcasting_runoff() 225 float transparency_cache[MAPSIZE * SEEX][MAPSIZE * SEEY] = {}; in shadowcasting_runoff() 292 float lit_squares_float[MAPSIZE * SEEX][MAPSIZE * SEEY] = {}; in shadowcasting_float_quad() 294 float transparency_cache[MAPSIZE * SEEX][MAPSIZE * SEEY] = {}; in shadowcasting_float_quad() 415 float seen_squares_control[MAPSIZE * SEEX][MAPSIZE * SEEY] = {}; in shadowcasting_3d_2d() 417 float transparency_cache[MAPSIZE * SEEX][MAPSIZE * SEEY] = {}; in shadowcasting_3d_2d() [all …]
|
H A D | map_memory_test.cpp | 129 static void check_quadrants( std::bitset<MAPSIZE *SEEX *MAPSIZE *SEEY> &test_cache, in check_quadrants() 135 size_t y_offset = y * SEEX * MAPSIZE; in check_quadrants() 141 for( ; x < SEEX * MAPSIZE; ++x ) { in check_quadrants() 146 for( ; y < SEEY * MAPSIZE; ++y ) { in check_quadrants() 147 size_t y_offset = y * SEEX * MAPSIZE; in check_quadrants() 153 for( ; x < SEEX * MAPSIZE; ++x ) { in check_quadrants() 161 static constexpr size_t last_twelve = ( SEEX *MAPSIZE ) - SEEX; 165 std::bitset<MAPSIZE *SEEX *MAPSIZE *SEEY> test_cache;
|
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/tests/ |
H A D | shadowcasting_test.cpp | 26 static void oldCastLight( float ( &output_cache )[MAPSIZE * SEEX][MAPSIZE * SEEY], in oldCastLight() 86 const float ( &transparency_cache )[MAPSIZE * SEEX][MAPSIZE * SEEY] ) in bresenham_visibility_check() 106 float ( &transparency_cache )[MAPSIZE * SEEX][MAPSIZE * SEEY], in randomly_fill_transparency() 223 float seen_squares_control[MAPSIZE * SEEX][MAPSIZE * SEEY] = {}; in shadowcasting_runoff() 224 float seen_squares_experiment[MAPSIZE * SEEX][MAPSIZE * SEEY] = {}; in shadowcasting_runoff() 225 float transparency_cache[MAPSIZE * SEEX][MAPSIZE * SEEY] = {}; in shadowcasting_runoff() 292 float lit_squares_float[MAPSIZE * SEEX][MAPSIZE * SEEY] = {}; in shadowcasting_float_quad() 294 float transparency_cache[MAPSIZE * SEEX][MAPSIZE * SEEY] = {}; in shadowcasting_float_quad() 415 float seen_squares_control[MAPSIZE * SEEX][MAPSIZE * SEEY] = {}; in shadowcasting_3d_2d() 417 float transparency_cache[MAPSIZE * SEEX][MAPSIZE * SEEY] = {}; in shadowcasting_3d_2d() [all …]
|
H A D | map_memory_test.cpp | 129 static void check_quadrants( std::bitset<MAPSIZE *SEEX *MAPSIZE *SEEY> &test_cache, in check_quadrants() 135 size_t y_offset = y * SEEX * MAPSIZE; in check_quadrants() 141 for( ; x < SEEX * MAPSIZE; ++x ) { in check_quadrants() 146 for( ; y < SEEY * MAPSIZE; ++y ) { in check_quadrants() 147 size_t y_offset = y * SEEX * MAPSIZE; in check_quadrants() 153 for( ; x < SEEX * MAPSIZE; ++x ) { in check_quadrants() 161 static constexpr size_t last_twelve = ( SEEX *MAPSIZE ) - SEEX; 165 std::bitset<MAPSIZE *SEEX *MAPSIZE *SEEY> test_cache;
|
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gdb/gdb/testsuite/gdb.base/ |
H A D | coremaker.c | 16 #define MAPSIZE (8 * 1024) macro 42 buf1 = (char *) malloc (MAPSIZE); in mmapdata() 43 for (j = 0; j < MAPSIZE; ++j) in mmapdata() 57 write (fd, buf1, MAPSIZE); in mmapdata() 61 buf2 = (char *) mmap (0, MAPSIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in mmapdata() 72 for (j = 0; j < MAPSIZE; ++j) in mmapdata()
|
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gdb/gdb/testsuite/gdb.base/ |
H A D | coremaker.c | 16 #define MAPSIZE (8 * 1024) macro 42 buf1 = (char *) malloc (MAPSIZE); in mmapdata() 43 for (j = 0; j < MAPSIZE; ++j) in mmapdata() 57 write (fd, buf1, MAPSIZE); in mmapdata() 61 buf2 = (char *) mmap (0, MAPSIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in mmapdata() 72 for (j = 0; j < MAPSIZE; ++j) in mmapdata()
|
/dports/devel/avr-gdb/gdb-7.3.1/gdb/testsuite/gdb.base/ |
H A D | coremaker.c | 34 #define MAPSIZE (8 * 1024) macro 60 buf1 = (char *) malloc (MAPSIZE); in mmapdata() 61 for (j = 0; j < MAPSIZE; ++j) in mmapdata() 75 write (fd, buf1, MAPSIZE); in mmapdata() 79 buf2 = (char *) mmap (0, MAPSIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in mmapdata() 90 for (j = 0; j < MAPSIZE; ++j) in mmapdata()
|
/dports/devel/gdb761/gdb-7.6.1/gdb/testsuite/gdb.base/ |
H A D | coremaker.c | 33 #define MAPSIZE (8 * 1024) macro 59 buf1 = (char *) malloc (MAPSIZE); in mmapdata() 60 for (j = 0; j < MAPSIZE; ++j) in mmapdata() 74 write (fd, buf1, MAPSIZE); in mmapdata() 78 buf2 = (char *) mmap (0, MAPSIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in mmapdata() 89 for (j = 0; j < MAPSIZE; ++j) in mmapdata()
|
/dports/games/rottdc/rottdc-1.0-2/rott/ |
H A D | rt_draw.h | 51 extern word tilemap[MAPSIZE][MAPSIZE]; // wall values only 52 extern byte spotvis[MAPSIZE][MAPSIZE]; 81 extern byte mapseen[MAPSIZE][MAPSIZE];
|
/dports/shells/ast-ksh/ast-ksh93v/src/cmd/tests/vmalloc/ |
H A D | tdcshare.c | 22 #define MAPSIZE (8*1024*1024) macro 24 #define ALLOCZ (MAPSIZE/ALLOCN/2) 49 if(!(dc = vmdcshare(shmfile, 1, MAPSIZE, 0)) || in tmain() 60 if(!(dc = vmdcshare(mapfile, -1, MAPSIZE, 0)) || in tmain() 71 if(!(dc = vmdcshare(shmfile, 1, MAPSIZE, -1)) || in tmain() 77 if(!(dc = vmdcshare(mapfile, -1, MAPSIZE, -1)) || in tmain()
|
/dports/shells/ksh93/ast-93u/src/lib/libast/port/ |
H A D | astcopy.c | 35 #define MAPSIZE (1024*256) macro 50 #ifdef MAPSIZE in astcopy() 62 #if MAPSIZE in astcopy() 67 if (mapsize > MAPSIZE) mapsize = (mapsize > n && n > 0) ? n : MAPSIZE; in astcopy()
|
/dports/shells/ksh93-devel/ast-cc1bca27/src/lib/libast/port/ |
H A D | astcopy.c | 35 #define MAPSIZE (1024*256) macro 50 #ifdef MAPSIZE in astcopy() 62 #if MAPSIZE in astcopy() 67 if (mapsize > MAPSIZE) mapsize = (mapsize > n && n > 0) ? n : MAPSIZE; in astcopy()
|
/dports/shells/ast-ksh/ast-ksh93v/src/lib/libast/port/ |
H A D | astcopy.c | 35 #define MAPSIZE (1024*256) macro 50 #ifdef MAPSIZE in astcopy() 62 #if MAPSIZE in astcopy() 67 if (mapsize > MAPSIZE) mapsize = (mapsize > n && n > 0) ? n : MAPSIZE; in astcopy()
|
/dports/shells/ksh93-devel/ast-cc1bca27/src/cmd/tests/vmalloc/ |
H A D | tmmopen.c | 22 #define MAPSIZE (128*1024*1024) macro 46 if(!(shm = vmmopen(shmfile, 1, MAPSIZE)) ) in tmain() 58 if(!(map = vmmopen(mapfile, -1, MAPSIZE)) ) in tmain() 71 if(shm = vmmopen(shmfile, 1, MAPSIZE) ) in tmain() 79 if(map = vmmopen(mapfile, -1, MAPSIZE) ) in tmain()
|
/dports/shells/ksh93/ast-93u/src/cmd/tests/vmalloc/ |
H A D | tmmopen.c | 22 #define MAPSIZE (128*1024*1024) macro 46 if(!(shm = vmmopen(shmfile, 1, MAPSIZE)) ) in tmain() 58 if(!(map = vmmopen(mapfile, -1, MAPSIZE)) ) in tmain() 71 if(shm = vmmopen(shmfile, 1, MAPSIZE) ) in tmain() 79 if(map = vmmopen(mapfile, -1, MAPSIZE) ) in tmain()
|
/dports/shells/ksh93-devel/ast-cc1bca27/src/lib/libast/features/ |
H A D | mmap | 13 #define MAPSIZE (64*1024) 24 char file[1024], buf[MAPSIZE]; 89 { mm = (caddr_t)mmap(mm, MAPSIZE, 92 fd, i*MAPSIZE ); 96 munmap(mm, MAPSIZE); 100 fd, i*MAPSIZE ); 226 #define MAPSIZE (64*1024) 227 #define BUFSIZE (MAPSIZE/8) 245 char file[1024], buf[MAPSIZE]; 286 munmap(mm, MAPSIZE); [all …]
|
/dports/shells/ksh93/ast-93u/src/lib/libast/features/ |
H A D | mmap | 13 #define MAPSIZE (64*1024) 24 char file[1024], buf[MAPSIZE]; 89 { mm = (caddr_t)mmap(mm, MAPSIZE, 92 fd, i*MAPSIZE ); 96 munmap(mm, MAPSIZE); 100 fd, i*MAPSIZE ); 226 #define MAPSIZE (64*1024) 227 #define BUFSIZE (MAPSIZE/8) 245 char file[1024], buf[MAPSIZE]; 286 munmap(mm, MAPSIZE); [all …]
|
/dports/graphics/piglit/piglit-136a7f5fa0703603be1ffb338abe4865e76a8058/tests/spec/arb_robustness/ |
H A D | client-mem-bounds.c | 74 #define MAPSIZE 32 in test_pixelmap() macro 78 GL##type v[MAPSIZE];\ in test_pixelmap() 83 for (i = 0; i < MAPSIZE; i += 2)\ in test_pixelmap() 89 glPixelMap##t##v(GL_PIXEL_MAP_R_TO_R, MAPSIZE, v);\ in test_pixelmap() 92 glPixelMap##t##v(GL_PIXEL_MAP_G_TO_G, MAPSIZE, v);\ in test_pixelmap() 95 glPixelMap##t##v(GL_PIXEL_MAP_B_TO_B, MAPSIZE, v);\ in test_pixelmap() 98 glPixelMap##t##v(GL_PIXEL_MAP_A_TO_A, MAPSIZE, v);\ in test_pixelmap() 121 #undef MAPSIZE in test_pixelmap()
|
/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/src/ |
H A D | level_cache.h | 26 std::bitset<MAPSIZE *MAPSIZE> transparency_cache_dirty; 85 std::bitset<MAPSIZE *MAPSIZE> field_cache;
|
H A D | game_constants.h | 32 static constexpr int MAPSIZE = 11; variable 33 static constexpr int HALF_MAPSIZE = static_cast<int>( MAPSIZE / 2 ); 40 static constexpr int MAPSIZE_X = SEEX * MAPSIZE; 41 static constexpr int MAPSIZE_Y = SEEY * MAPSIZE;
|
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/src/ |
H A D | level_cache.h | 26 std::bitset<MAPSIZE *MAPSIZE> transparency_cache_dirty; 85 std::bitset<MAPSIZE *MAPSIZE> field_cache;
|
/dports/net-mgmt/nagios4/nagios-4.4.6/lib/ |
H A D | bitmap.c | 13 #define MAPSIZE (sizeof(bmap) * CHAR_BIT) macro 14 #define MAPMASK (MAPSIZE - 1) /* bits - 1, so 63 for 64-bit machines */ 15 #define SHIFTOUT (MAPSIZE == 64 ? 6 : 5) /* log2(bits) */ 187 return bm->alloc * MAPSIZE; in bitmap_cardinality() 280 memcpy(&bm->vector[i], &b->vector[i], (b->alloc - a->alloc) * MAPSIZE); in bitmap_diff() 294 memcpy(&bm->vector[i], &b->vector[i], (b->alloc - a->alloc) * MAPSIZE); in bitmap_symdiff() 304 ret = memcmp(a->vector, b->vector, min(a->alloc, b->alloc) * MAPSIZE); in bitmap_cmp()
|
/dports/shells/ast-ksh/ast-ksh93v/src/lib/libast/features/ |
H A D | mmap | 13 #define MAPSIZE (64*1024) 24 char buf[MAPSIZE]; 73 { mm = (caddr_t)mmap(mm, MAPSIZE, 76 fd, i*MAPSIZE ); 80 munmap(mm, MAPSIZE); 81 mm = (caddr_t)mmap((caddr_t)0, MAPSIZE, 84 fd, i*MAPSIZE );
|