Changeset 26712
- Timestamp:
- Jan 28, 2010, 4:42:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/Ohana/src/libautocode/generate
r21508 r26712 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.
