new对象(short、byte数组)改为调用JCSystem.makeTransientXxxArray放到ram里面;
makeTransientXxxArray类型改为MEMORY_TYPE_TRANSIENT_RESETMEMORY_TYPE_TRANSIENT_RESET
This commit is contained in:
@@ -5,12 +5,18 @@ package com.cscn;
|
||||
*/
|
||||
public class Zuc256State {
|
||||
// LFSR: 原 int[16] -> hi/lo 各 16
|
||||
public short[] LFSR_hi = new short[16];
|
||||
public short[] LFSR_lo = new short[16];
|
||||
public short[] LFSR_hi;
|
||||
public short[] LFSR_lo;
|
||||
|
||||
// R1, R2: 原 int -> hi/lo
|
||||
public short R1_hi;
|
||||
public short R1_lo;
|
||||
public short R2_hi;
|
||||
public short R2_lo;
|
||||
|
||||
public Zuc256State() {
|
||||
this.LFSR_hi = JCSystem.makeTransientShortArray((short)16, JCSystem.MEMORY_TYPE_TRANSIENT_RESET);
|
||||
this.LFSR_lo = JCSystem.makeTransientShortArray((short)16, JCSystem.MEMORY_TYPE_TRANSIENT_RESET);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user