- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/Ohana/src/libautocode/generate
r21508 r27840 135 135 # FITS tables do not allow for 64bit integers. we need to 136 136 # write these by splitting the value into high and low 32 bit values 137 if ($type eq "int64_t") { $pt1 = " J"; $Np = 2*$Np;}138 if ($type eq "uint64_t") { $pt1 = " J"; $Np = 2*$Np;}137 if ($type eq "int64_t") { $pt1 = "K";} 138 if ($type eq "uint64_t") { $pt1 = "K";} 139 139 140 140 if ($type eq "float") { $pt1 = "E"; } … … 239 239 if ($type eq "uint32_t") { $pt1 = sprintf "I%s", $length; } 240 240 241 # FITS tables do not allow for 64bit integers. we need to 242 # write these by splitting the value into high and low 32 bit values 243 if ($type eq "int64_t") { $pt1 = sprintf "I%s", $length; } 244 if ($type eq "uint64_t") { $pt1 = sprintf "I%s", $length; } 241 if ($type eq "int64_t") { $pt1 = sprintf "K%s", $length; } 242 if ($type eq "uint64_t") { $pt1 = sprintf "K%s", $length; } 245 243 246 244 if ($type eq "float") { $pt1 = sprintf "F%s", $length; } … … 324 322 if ($type eq "uint32_t") { $T = "WORD"; $n = 4; } 325 323 326 # FITS tables do not allow for 64bit integers. we need to 327 # write these by splitting the value into high and low 32 bit values 328 if ($type eq "int64_t") { $T = "WORD"; $n = 4; $Np = 2*$Np; } 329 if ($type eq "uint64_t") { $T = "WORD"; $n = 4; $Np = 2*$Np; } 324 if ($type eq "int64_t") { $T = "DBLE"; $n = 8; } 325 if ($type eq "uint64_t") { $T = "DBLE"; $n = 8; } 330 326 331 327 if ($type eq "float") { $T = "WORD"; $n = 4; } … … 370 366 if ($type eq "int32_t") { $Nbytes += 4*$Np; $valid = 1; } 371 367 if ($type eq "uint32_t") { $Nbytes += 4*$Np; $valid = 1; } 372 373 # FITS tables do not allow for 64bit integers. we need to374 # write these by splitting the value into high and low 32 bit values375 368 if ($type eq "int64_t") { $Nbytes += 8*$Np; $valid = 1; } 376 369 if ($type eq "uint64_t") { $Nbytes += 8*$Np; $valid = 1; }
Note:
See TracChangeset
for help on using the changeset viewer.
