summaryrefslogtreecommitdiffstats
path: root/libdimension/prtree.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-02-28 18:12:01 -0500
committerTavian Barnes <tavianator@gmail.com>2011-03-08 21:43:24 -0500
commit54a201552db7477aa04a625fd5bc938ad8c97800 (patch)
tree2d2ff2b2f092e3c603a5c65e3e777c823ddbb3a6 /libdimension/prtree.c
parenta2bf45329a172d2c53594c64d27f1c15ac26796a (diff)
downloaddimension-54a201552db7477aa04a625fd5bc938ad8c97800.tar.xz
New DMNSN_HOT macro.
Diffstat (limited to 'libdimension/prtree.c')
-rw-r--r--libdimension/prtree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/prtree.c b/libdimension/prtree.c
index d95c2d2..9bab7c3 100644
--- a/libdimension/prtree.c
+++ b/libdimension/prtree.c
@@ -677,7 +677,7 @@ dmnsn_ray_box_intersection(dmnsn_optimized_line optline,
return tmax >= dmnsn_max(0.0, tmin) && tmin < t;
}
-bool
+DMNSN_HOT bool
dmnsn_prtree_intersection(const dmnsn_prtree *tree, dmnsn_line ray,
dmnsn_intersection *intersection)
{
@@ -722,7 +722,7 @@ dmnsn_prtree_intersection(const dmnsn_prtree *tree, dmnsn_line ray,
return !isinf(t);
}
-bool
+DMNSN_HOT bool
dmnsn_prtree_inside(const dmnsn_prtree *tree, dmnsn_vector point)
{
/* Search the unbounded objects */