mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
Update bench
This commit is contained in:
@@ -14,6 +14,26 @@ typedef struct {
|
||||
long h;
|
||||
} large;
|
||||
|
||||
typedef struct {
|
||||
long a;
|
||||
float b;
|
||||
} small_ugly;
|
||||
|
||||
typedef struct {
|
||||
long a;
|
||||
float b;
|
||||
long c;
|
||||
double d;
|
||||
long e;
|
||||
long f;
|
||||
long g;
|
||||
double h;
|
||||
long i;
|
||||
long j;
|
||||
long k;
|
||||
double l;
|
||||
} large_ugly;
|
||||
|
||||
int exotic_arguments_struct_small(small a, int nonce) {
|
||||
return a.a + a.b + nonce;
|
||||
}
|
||||
@@ -22,6 +42,14 @@ long exotic_arguments_struct_large(large a, int nonce) {
|
||||
return a.a + a.b + a.c + a.d + a.e + a.f + a.g + a.h + nonce;
|
||||
}
|
||||
|
||||
float exotic_arguments_struct_small_ugly(small_ugly a, int nonce) {
|
||||
return 0.0f + a.a + a.b + nonce;
|
||||
}
|
||||
|
||||
double exotic_arguments_struct_large_ugly(large_ugly a, int nonce) {
|
||||
return 0.0 + a.a + a.b + a.c + a.d + a.e + a.f + a.g + a.h + nonce;
|
||||
}
|
||||
|
||||
float exotic_arguments_float(float a, int nonce) {
|
||||
return a + (float) nonce;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user