changes templates
This commit is contained in:
parent
87b4082633
commit
21d3250e1a
|
@ -30,8 +30,6 @@
|
||||||
*
|
*
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
<%
|
<%
|
||||||
import com.minres.coredsl.util.BigIntegerWithRadix
|
|
||||||
|
|
||||||
def nativeTypeSize(int size){
|
def nativeTypeSize(int size){
|
||||||
if(size<=8) return 8; else if(size<=16) return 16; else if(size<=32) return 32; else return 64;
|
if(size<=8) return 8; else if(size<=16) return 16; else if(size<=32) return 32; else return 64;
|
||||||
}
|
}
|
||||||
|
@ -57,9 +55,6 @@ def byteSize(int size){
|
||||||
return 128;
|
return 128;
|
||||||
}
|
}
|
||||||
def getCString(def val){
|
def getCString(def val){
|
||||||
if(val instanceof BigIntegerWithRadix)
|
|
||||||
return ((BigIntegerWithRadix)val).toCString()
|
|
||||||
else
|
|
||||||
return val.toString()
|
return val.toString()
|
||||||
}
|
}
|
||||||
%>
|
%>
|
||||||
|
|
|
@ -30,8 +30,6 @@
|
||||||
*
|
*
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
<%
|
<%
|
||||||
import com.minres.coredsl.util.BigIntegerWithRadix
|
|
||||||
|
|
||||||
def nativeTypeSize(int size){
|
def nativeTypeSize(int size){
|
||||||
if(size<=8) return 8; else if(size<=16) return 16; else if(size<=32) return 32; else return 64;
|
if(size<=8) return 8; else if(size<=16) return 16; else if(size<=32) return 32; else return 64;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue