jdk/make/java/nio/genBuffer.sh
changeset 4502 18f387917b89
parent 4115 e09be02771b6
child 5506 202f599c92aa
equal deleted inserted replaced
4356:1f9c2400b8c5 4502:18f387917b89
    42 rw=$RW
    42 rw=$RW
    43 rwkey=XX
    43 rwkey=XX
    44 
    44 
    45 case $type in
    45 case $type in
    46   char)  fulltype=character;;
    46   char)  fulltype=character;;
       
    47   int)   fulltype=integer;;
    47   *)     fulltype=$type;;
    48   *)     fulltype=$type;;
    48 esac
    49 esac
    49 
    50 
    50 case $type in
    51 case $type in
    51   byte)           LBPV=0;;
    52   byte)           LBPV=0;;
    52   char | short)   LBPV=1;;
    53   char | short)   LBPV=1;;
    53   int | float)    LBPV=2;;
    54   int | float)    LBPV=2;;
    54   long | double)  LBPV=3;;
    55   long | double)  LBPV=3;;
       
    56 esac
       
    57 
       
    58 case $type in 
       
    59   float|double) floatingPointOrIntegralType=floatingPointType;;
       
    60   *)            floatingPointOrIntegralType=integralType;;
    55 esac
    61 esac
    56 
    62 
    57 typesAndBits() {
    63 typesAndBits() {
    58 
    64 
    59   type="$1"; BO="$2"
    65   type="$1"; BO="$2"
    99 
   105 
   100 set -e
   106 set -e
   101 
   107 
   102 $SPP <$SRC >$DST \
   108 $SPP <$SRC >$DST \
   103   -K$type \
   109   -K$type \
       
   110   -K$floatingPointOrIntegralType \
   104   -Dtype=$type \
   111   -Dtype=$type \
   105   -DType=$Type \
   112   -DType=$Type \
   106   -Dfulltype=$fulltype \
   113   -Dfulltype=$fulltype \
   107   -DFulltype=$Fulltype \
   114   -DFulltype=$Fulltype \
   108   -Dx=$x \
   115   -Dx=$x \