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>
This commit is contained in:
committed by
Pekka Paalanen
parent
a1e5d46d91
commit
8bbd1a995b
+2
-7
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user