5 // big enough that it won't be returned in registers
9 public Result (int val) {
18 public static int AddABunchOfInts (__arglist)
22 System.ArgIterator iter = new System.ArgIterator (__arglist);
23 int argCount = iter.GetRemainingCount();
25 for (int i = 0; i < argCount; i++) {
26 System.TypedReference typedRef = iter.GetNextArg();
27 result += (int)TypedReference.ToObject( typedRef );
33 public static int AddASecondBunchOfInts (int a, __arglist)
37 System.ArgIterator iter = new System.ArgIterator (__arglist);
38 int argCount = iter.GetRemainingCount();
40 for (int i = 0; i < argCount; i++) {
41 System.TypedReference typedRef = iter.GetNextArg();
42 result += (int)TypedReference.ToObject( typedRef );
48 public static Result VtAddABunchOfInts (__arglist)
52 System.ArgIterator iter = new System.ArgIterator (__arglist);
53 int argCount = iter.GetRemainingCount();
55 for (int i = 0; i < argCount; i++) {
56 System.TypedReference typedRef = iter.GetNextArg();
57 result += (int)TypedReference.ToObject( typedRef );
60 return new Result (result);
63 public static Result VtAddASecondBunchOfInts (int a, __arglist)
67 System.ArgIterator iter = new System.ArgIterator (__arglist);
68 int argCount = iter.GetRemainingCount();
70 for (int i = 0; i < argCount; i++) {
71 System.TypedReference typedRef = iter.GetNextArg();
72 result += (int)TypedReference.ToObject( typedRef );
75 return new Result (result);
78 public int InstAddABunchOfInts (__arglist)
82 System.ArgIterator iter = new System.ArgIterator (__arglist);
83 int argCount = iter.GetRemainingCount();
85 for (int i = 0; i < argCount; i++) {
86 System.TypedReference typedRef = iter.GetNextArg();
87 result += (int)TypedReference.ToObject( typedRef );
93 public int InstAddASecondBunchOfInts (int a, __arglist)
97 System.ArgIterator iter = new System.ArgIterator (__arglist);
98 int argCount = iter.GetRemainingCount();
100 for (int i = 0; i < argCount; i++) {
101 System.TypedReference typedRef = iter.GetNextArg();
102 result += (int)TypedReference.ToObject( typedRef );
108 public Result InstVtAddABunchOfInts (__arglist)
112 System.ArgIterator iter = new System.ArgIterator (__arglist);
113 int argCount = iter.GetRemainingCount();
115 for (int i = 0; i < argCount; i++) {
116 System.TypedReference typedRef = iter.GetNextArg();
117 result += (int)TypedReference.ToObject( typedRef );
120 return new Result (result);
123 public Result InstVtAddASecondBunchOfInts (int a, __arglist)
127 System.ArgIterator iter = new System.ArgIterator (__arglist);
128 int argCount = iter.GetRemainingCount();
130 for (int i = 0; i < argCount; i++) {
131 System.TypedReference typedRef = iter.GetNextArg();
132 result += (int)TypedReference.ToObject( typedRef );
135 return new Result (result);