From 34811cbe4bf6da3e6e22860890fca4c9fff71252 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 28 Apr 2022 16:57:58 -0700 Subject: libs/din: lose the asserts in dotgradient() This just slows things down, and now that the code is mature enough to never trigger these asserts just get rid of them. --- src/libs/din/din.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/libs') diff --git a/src/libs/din/din.c b/src/libs/din/din.c index 22e2848..c0bac93 100644 --- a/src/libs/din/din.c +++ b/src/libs/din/din.c @@ -76,10 +76,6 @@ static inline float dotgradient(const din_t *din, int x, int y, int z, const v3f { v3f_t distance = v3f_sub(coordinate, &(v3f_t){.x = x, .y = y, .z = z}); - assert(x < din->width); - assert(y < din->height); - assert(z < din->depth); - return v3f_dot(&din->grid[z * din->W_x_H + y * din->width + x], &distance); } -- cgit v1.2.1