summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorPekka Paalanen <pekka.paalanen@collabora.com>2022-05-27 14:12:58 +0300
committerPekka Paalanen <pq@iki.fi>2022-05-31 12:26:09 +0000
commit8bbd1a995be59485cb7078d3c6c6bbf9f9ae00c6 (patch)
tree7c8b3a74889cf647f7bbd37ed08fad11d716bc2f /shared
parenta1e5d46d9145b418e91994963434bff4a3c4cb66 (diff)
downloadweston-8bbd1a995be59485cb7078d3c6c6bbf9f9ae00c6.tar.gz
libweston: remove UNIT_TEST
This #define was used only by the matrix-test program, which was removed in the previous commit. Remove it as unused and fold away MATRIX_TEST_EXPORT. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Diffstat (limited to 'shared')
-rw-r--r--shared/matrix.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/shared/matrix.c b/shared/matrix.c
index 4e8d6b40..0df22840 100644
--- a/shared/matrix.c
+++ b/shared/matrix.c
@@ -31,12 +31,7 @@
#include <stdlib.h>
#include <math.h>
-#ifdef UNIT_TEST
-#define WL_EXPORT
-#else
#include <wayland-server.h>
-#endif
-
#include <libweston/matrix.h>
@@ -169,7 +164,7 @@ find_pivot(double *column, unsigned k)
* LU decomposition, forward and back substitution: Chapter 3.
*/
-MATRIX_TEST_EXPORT inline int
+static int
matrix_invert(double *A, unsigned *p, const struct weston_matrix *matrix)
{
unsigned i, j, k;
@@ -204,7 +199,7 @@ matrix_invert(double *A, unsigned *p, const struct weston_matrix *matrix)
return 0;
}
-MATRIX_TEST_EXPORT inline void
+static void
inverse_transform(const double *LU, const unsigned *p, float *v)
{
/* Solve A * x = v, when we have P * A = L * U.