makefiles/GensrcBuffer.gmk

Print this page




  52         $1_a := a
  53         $1_A := A
  54 
  55         $1_type := $2
  56 
  57         ifeq ($2, byte)
  58                 $1_x        := b
  59                 $1_Type     := Byte
  60                 $1_fulltype := byte
  61                 $1_Fulltype := Byte
  62                 $1_category := integralType
  63                 $1_LBPV     := 0
  64         endif
  65 
  66         ifeq ($2, char)
  67                 $1_x        := c
  68                 $1_Type     := Char
  69                 $1_fulltype := character
  70                 $1_Fulltype := Character
  71                 $1_category := integralType



  72                 $1_LBPV     := 1
  73         endif
  74 
  75         ifeq ($2, short)
  76                 $1_x        := s
  77                 $1_Type     := Short
  78                 $1_fulltype := short
  79                 $1_Fulltype := Short
  80                 $1_category := integralType
  81                 $1_LBPV     := 1
  82         endif
  83 
  84         ifeq ($2, int)
  85                 $1_a := an
  86                 $1_A := An
  87                 $1_x        := i
  88                 $1_Type     := Int
  89                 $1_fulltype := integer
  90                 $1_Fulltype := Integer
  91                 $1_category := integralType


 214                 $1_DEP := $$($1_SRC)
 215                 $1_OUT := $$($1_DST)
 216         else
 217                 $1_DEP += $$($1_SRC) $$($1_SRC_BIN)
 218                 $1_OUT := $(GENSRC_BUFFER_DST)/$1.binop.0.java
 219         endif
 220 
 221         ifeq ($$($1_BIN),1)
 222                 $(call genBinOps,$1_char,char,$$($1_BO),$$($1_RW),two,one)
 223                 $(call genBinOps,$1_short,short,$$($1_BO),$$($1_RW),two,one)
 224                 $(call genBinOps,$1_int,int,$$($1_BO),$$($1_RW),four,three)
 225                 $(call genBinOps,$1_long,long,$$($1_BO),$$($1_RW),eight,seven)
 226                 $(call genBinOps,$1_float,float,$$($1_BO),$$($1_RW),four,three)
 227                 $(call genBinOps,$1_double,double,$$($1_BO),$$($1_RW),eight,seven)
 228         endif
 229 
 230 $$($1_DST) : $$($1_DEP) $(GENSRC_BUFFER_DST)/_the.buffer.dir
 231         $(TOOL_SPP) < $$($1_SRC) > $$($1_OUT).tmp \
 232                 -K$$($1_type) \
 233                 -K$$($1_category) \

 234                 -Dtype=$$($1_type) \
 235                 -DType=$$($1_Type) \
 236                 -Dfulltype=$$($1_fulltype) \
 237                 -DFulltype=$$($1_Fulltype) \


 238                 -Dx=$$($1_x) \
 239                 -Dmemtype=$$($1_memtype) \
 240                 -DMemtype=$$($1_Memtype) \
 241                 -DSwaptype=$$($1_Swaptype) \
 242                 -DfromBits=$$($1_fromBits) \
 243                 -DtoBits=$$($1_toBits) \
 244                 -DLG_BYTES_PER_VALUE=$$($1_LBPV) \
 245                 -DBYTES_PER_VALUE="(1 << $$($1_LBPV))" \
 246                 -DBO=$$($1_BO) \
 247                 -Dswap=$$($1_swap) \
 248                 -DRW=$$($1_RW) \
 249                 -K$$($1_rwkey) \
 250                 -Da=$$($1_a) \
 251                 -DA=$$($1_A) \
 252                 -Kbo$$($1_BO)
 253                 $(MV) $$($1_OUT).tmp $$($1_OUT)
 254 # Do the extra bin thing
 255 ifeq ($$($1_BIN),1)
 256         $(SED) -e '/#BIN/,$$$$d' < $$($1_OUT) > $$($1_DST).tmp
 257         $(RM) $$($1_OUT)




  52         $1_a := a
  53         $1_A := A
  54 
  55         $1_type := $2
  56 
  57         ifeq ($2, byte)
  58                 $1_x        := b
  59                 $1_Type     := Byte
  60                 $1_fulltype := byte
  61                 $1_Fulltype := Byte
  62                 $1_category := integralType
  63                 $1_LBPV     := 0
  64         endif
  65 
  66         ifeq ($2, char)
  67                 $1_x        := c
  68                 $1_Type     := Char
  69                 $1_fulltype := character
  70                 $1_Fulltype := Character
  71                 $1_category := integralType
  72                 $1_streams  := streamableType
  73                 $1_streamtype := int
  74                 $1_Streamtype := Int
  75                 $1_LBPV     := 1
  76         endif
  77 
  78         ifeq ($2, short)
  79                 $1_x        := s
  80                 $1_Type     := Short
  81                 $1_fulltype := short
  82                 $1_Fulltype := Short
  83                 $1_category := integralType
  84                 $1_LBPV     := 1
  85         endif
  86 
  87         ifeq ($2, int)
  88                 $1_a := an
  89                 $1_A := An
  90                 $1_x        := i
  91                 $1_Type     := Int
  92                 $1_fulltype := integer
  93                 $1_Fulltype := Integer
  94                 $1_category := integralType


 217                 $1_DEP := $$($1_SRC)
 218                 $1_OUT := $$($1_DST)
 219         else
 220                 $1_DEP += $$($1_SRC) $$($1_SRC_BIN)
 221                 $1_OUT := $(GENSRC_BUFFER_DST)/$1.binop.0.java
 222         endif
 223 
 224         ifeq ($$($1_BIN),1)
 225                 $(call genBinOps,$1_char,char,$$($1_BO),$$($1_RW),two,one)
 226                 $(call genBinOps,$1_short,short,$$($1_BO),$$($1_RW),two,one)
 227                 $(call genBinOps,$1_int,int,$$($1_BO),$$($1_RW),four,three)
 228                 $(call genBinOps,$1_long,long,$$($1_BO),$$($1_RW),eight,seven)
 229                 $(call genBinOps,$1_float,float,$$($1_BO),$$($1_RW),four,three)
 230                 $(call genBinOps,$1_double,double,$$($1_BO),$$($1_RW),eight,seven)
 231         endif
 232 
 233 $$($1_DST) : $$($1_DEP) $(GENSRC_BUFFER_DST)/_the.buffer.dir
 234         $(TOOL_SPP) < $$($1_SRC) > $$($1_OUT).tmp \
 235                 -K$$($1_type) \
 236                 -K$$($1_category) \
 237                 -K$$($1_streams) \
 238                 -Dtype=$$($1_type) \
 239                 -DType=$$($1_Type) \
 240                 -Dfulltype=$$($1_fulltype) \
 241                 -DFulltype=$$($1_Fulltype) \
 242                 -Dstreamtype=$$($1_streamtype) \
 243                 -DStreamtype=$$($1_Streamtype) \
 244                 -Dx=$$($1_x) \
 245                 -Dmemtype=$$($1_memtype) \
 246                 -DMemtype=$$($1_Memtype) \
 247                 -DSwaptype=$$($1_Swaptype) \
 248                 -DfromBits=$$($1_fromBits) \
 249                 -DtoBits=$$($1_toBits) \
 250                 -DLG_BYTES_PER_VALUE=$$($1_LBPV) \
 251                 -DBYTES_PER_VALUE="(1 << $$($1_LBPV))" \
 252                 -DBO=$$($1_BO) \
 253                 -Dswap=$$($1_swap) \
 254                 -DRW=$$($1_RW) \
 255                 -K$$($1_rwkey) \
 256                 -Da=$$($1_a) \
 257                 -DA=$$($1_A) \
 258                 -Kbo$$($1_BO)
 259                 $(MV) $$($1_OUT).tmp $$($1_OUT)
 260 # Do the extra bin thing
 261 ifeq ($$($1_BIN),1)
 262         $(SED) -e '/#BIN/,$$$$d' < $$($1_OUT) > $$($1_DST).tmp
 263         $(RM) $$($1_OUT)