IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26712


Ignore:
Timestamp:
Jan 28, 2010, 4:42:18 PM (16 years ago)
Author:
eugene
Message:

updates from the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/Ohana/src/libautocode/generate

    r21508 r26712  
    135135        # FITS tables do not allow for 64bit integers.  we need to
    136136        # 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";}
    139139
    140140        if ($type eq "float")         { $pt1 = "E"; }
     
    239239        if ($type eq "uint32_t")      { $pt1 = sprintf "I%s", $length; }
    240240
    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; }
    245243
    246244        if ($type eq "float")         { $pt1 = sprintf "F%s", $length; }
     
    324322        if ($type eq "uint32_t")      { $T = "WORD"; $n = 4; }
    325323
    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; }
    330326
    331327        if ($type eq "float")         { $T = "WORD"; $n = 4; }
     
    370366        if ($type eq "int32_t")        { $Nbytes += 4*$Np; $valid = 1; }
    371367        if ($type eq "uint32_t")       { $Nbytes += 4*$Np; $valid = 1; }
    372 
    373         # FITS tables do not allow for 64bit integers.  we need to
    374         # write these by splitting the value into high and low 32 bit values
    375368        if ($type eq "int64_t")        { $Nbytes += 8*$Np; $valid = 1; }
    376369        if ($type eq "uint64_t")       { $Nbytes += 8*$Np; $valid = 1; }
Note: See TracChangeset for help on using the changeset viewer.