Changeset 38666
- Timestamp:
- Aug 9, 2015, 6:43:40 AM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150625/Ohana/src/libfits
- Files:
-
- 2 edited
-
matrix/F_compress_data.c (modified) (1 diff)
-
table/F_compress_T.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/libfits/matrix/F_compress_data.c
r38441 r38666 119 119 return (FALSE); 120 120 } 121 if (Nout > *Nzdata) { 122 fprintf (stderr, "buffer overrun! %d out, %d available\n", Nout, *Nzdata); 123 return FALSE; 124 } 121 125 *Nzdata = Nout; 122 126 return TRUE; -
branches/eam_branches/ipp-20150625/Ohana/src/libfits/table/F_compress_T.c
r38553 r38666 211 211 212 212 // allocate the intermediate storage buffers 213 int Nzdata_alloc = max_width*ztilelen + 100;213 int Nzdata_alloc = 2*max_width*ztilelen + 100; 214 214 ALLOCATE (raw, char, max_width*ztilelen); 215 215 ALLOCATE (zdata, char, Nzdata_alloc); … … 223 223 gettimeofday (&startTimer, (void *) NULL); 224 224 225 // ohana_memcheck (TRUE); 226 225 227 // compress the data : copy into a tile, compress the tile, then add to the output table 226 228 // each tile -> 1 row of the output table … … 243 245 } 244 246 247 // ohana_memcheck (TRUE); 248 245 249 // XXX TIMER 2a 246 250 gettimeofday (&stopTimer, (void *) NULL); … … 260 264 } 261 265 266 // ohana_memcheck (TRUE); 262 267 // optname, optvalue = NULL, Noptions = 0 263 268
Note:
See TracChangeset
for help on using the changeset viewer.
