summaryrefslogtreecommitdiffstats
path: root/bench/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-19 02:34:22 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-19 02:34:22 -0500
commit4dcb998baf07243838afcb4e202b7fd89399972e (patch)
treed4cbde7810ed2042ab4f8ef70024184f3511f5fb /bench/libdimension
parent4c55801feb15617888472def76ca4d1a60b3a107 (diff)
downloaddimension-4dcb998baf07243838afcb4e202b7fd89399972e.tar.xz
Use dmnsn_new_*() rather than dmnsn_*_construct().
Diffstat (limited to 'bench/libdimension')
-rw-r--r--bench/libdimension/geometry.c32
-rw-r--r--bench/libdimension/kD_splay_tree.c4
2 files changed, 18 insertions, 18 deletions
diff --git a/bench/libdimension/geometry.c b/bench/libdimension/geometry.c
index a80c0ff..38cac9b 100644
--- a/bench/libdimension/geometry.c
+++ b/bench/libdimension/geometry.c
@@ -37,20 +37,20 @@ main()
return EXIT_FAILURE;
}
- /* dmnsn_vector_construct() */
+ /* dmnsn_new_vector() */
sandglass_bench_fine(&sandglass, {
- vector = dmnsn_vector_construct(1.0, 2.0, 3.0);
+ vector = dmnsn_new_vector(1.0, 2.0, 3.0);
});
- printf("dmnsn_vector_construct(): %ld\n", sandglass.grains);
+ printf("dmnsn_new_vector(): %ld\n", sandglass.grains);
/* dmnsn_matrix_construct() */
sandglass_bench_fine(&sandglass, {
- matrix = dmnsn_matrix_construct(1.0, 1.0, 0.0, 0.0,
- 1.0, 1.0, 1.0, 0.0,
- 0.0, 1.0, 1.0, 0.0,
- 0.0, 0.0, 0.0, 1.0);
+ matrix = dmnsn_new_matrix(1.0, 1.0, 0.0, 0.0,
+ 1.0, 1.0, 1.0, 0.0,
+ 0.0, 1.0, 1.0, 0.0,
+ 0.0, 0.0, 0.0, 1.0);
});
- printf("dmnsn_matrix_construct(): %ld\n", sandglass.grains);
+ printf("dmnsn_new_matrix(): %ld\n", sandglass.grains);
/* dmnsn_identity_matrix() */
sandglass_bench_fine(&sandglass, {
@@ -76,12 +76,12 @@ main()
});
printf("dmnsn_rotation_matrix(): %ld\n", sandglass.grains);
- /* dmnsn_line_construct() */
- vector2 = dmnsn_vector_construct(3.0, 2.0, 1.0);
+ /* dmnsn_new_line() */
+ vector2 = dmnsn_new_vector(3.0, 2.0, 1.0);
sandglass_bench_fine(&sandglass, {
- line = dmnsn_line_construct(vector, vector2);
+ line = dmnsn_new_line(vector, vector2);
});
- printf("dmnsn_line_construct(): %ld\n", sandglass.grains);
+ printf("dmnsn_new_line(): %ld\n", sandglass.grains);
/* dmnsn_vector_add() */
sandglass_bench_fine(&sandglass, {
@@ -138,10 +138,10 @@ main()
printf("dmnsn_matrix_inverse(): %ld\n", sandglass.grains);
/* dmnsn_matrix_inverse(HARD) */
- matrix2 = dmnsn_matrix_construct(1.0, 1.0, 0.0, 0.0,
- 1.0, 1.0, 1.0, 0.0,
- 0.0, 1.0, 1.0, 0.0,
- 0.0, 0.0, 0.0, 1.0);
+ matrix2 = dmnsn_new_matrix(1.0, 1.0, 0.0, 0.0,
+ 1.0, 1.0, 1.0, 0.0,
+ 0.0, 1.0, 1.0, 0.0,
+ 0.0, 0.0, 0.0, 1.0);
sandglass_bench_fine(&sandglass, {
matrix = dmnsn_matrix_inverse(matrix2);
});
diff --git a/bench/libdimension/kD_splay_tree.c b/bench/libdimension/kD_splay_tree.c
index bb20a14..fffab69 100644
--- a/bench/libdimension/kD_splay_tree.c
+++ b/bench/libdimension/kD_splay_tree.c
@@ -146,8 +146,8 @@ main()
/* dmnsn_kD_splay_search() */
- ray.x0 = dmnsn_vector_construct(0.0, 0.0, -2.0);
- ray.n = dmnsn_vector_construct(0.0, 0.0, 1.0);
+ ray.x0 = dmnsn_new_vector(0.0, 0.0, -2.0);
+ ray.n = dmnsn_new_vector(0.0, 0.0, 1.0);
dmnsn_delete_intersection((*objects[0]->intersection_fn)(objects[0], ray));
sandglass_bench_noprecache(&sandglass, {