Changeset 43


Ignore:
Timestamp:
05/17/11 13:44:22 (13 years ago)
Author:
jhall
Message:

Changed MAKEPARAM from 32 to 16 bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/EventGenerator.java

    r42 r43  
    729729                String lowordStr = getTermValue(null, (Element) loword.getChildren().get(0)); 
    730730                String hiwordStr = getTermValue(null, (Element) hiword.getChildren().get(0)); 
    731                 return MAKEPARAM(Integer.parseInt(lowordStr), Integer.parseInt(hiwordStr)); 
     731                return MAKEPARAM(Short.parseShort(lowordStr), Short.parseShort(hiwordStr)); 
    732732        } 
    733733         
    734         private static long MAKEPARAM(int loword, int hiword) { 
    735                 return loword| ((long) hiword) << 32; 
     734        private static int MAKEPARAM(short loword, short hiword) { 
     735                return loword| ((int) hiword) << Short.SIZE; 
    736736        } 
    737737 
Note: See TracChangeset for help on using the changeset viewer.