Skip to content

Commit 8fa49eb

Browse files
committed
Removed odd functions
1 parent d0a8b6f commit 8fa49eb

File tree

4 files changed

+0
-98
lines changed

4 files changed

+0
-98
lines changed

include/lsp-plug.in/dsp/common/3dmath.h

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -473,23 +473,6 @@ LSP_DSP_LIB_SYMBOL(void, calc_normal3d_v2, LSP_DSP_LIB_TYPE(vector3d_t) *n, cons
473473
*/
474474
LSP_DSP_LIB_SYMBOL(void, calc_normal3d_vv, LSP_DSP_LIB_TYPE(vector3d_t) *n, const LSP_DSP_LIB_TYPE(vector3d_t) *vv);
475475

476-
/** Move point between two other points: p = p1 + (p2 - p1) * k
477-
*
478-
* @param p target to store result
479-
* @param p1 point 1
480-
* @param p2 point 2
481-
* @param k movement
482-
*/
483-
LSP_DSP_LIB_SYMBOL(void, move_point3d_p2, LSP_DSP_LIB_TYPE(point3d_t) *p, const LSP_DSP_LIB_TYPE(point3d_t) *p1, const LSP_DSP_LIB_TYPE(point3d_t) *p2, float k);
484-
485-
/** Move point between two other points: p = p1 + (p2 - p1) * k
486-
*
487-
* @param p point to move
488-
* @param pv array of two points
489-
* @param k movement
490-
*/
491-
LSP_DSP_LIB_SYMBOL(void, move_point3d_pv, LSP_DSP_LIB_TYPE(point3d_t) *p, const LSP_DSP_LIB_TYPE(point3d_t) *pv, float k);
492-
493476
/**
494477
* Add vector to point
495478
* @param p point
@@ -521,14 +504,6 @@ LSP_DSP_LIB_SYMBOL(void, add_vector_pvk1, LSP_DSP_LIB_TYPE(point3d_t) *p, const
521504
*/
522505
LSP_DSP_LIB_SYMBOL(void, add_vector_pvk2, LSP_DSP_LIB_TYPE(point3d_t) *p, const LSP_DSP_LIB_TYPE(point3d_t) *sp, const LSP_DSP_LIB_TYPE(vector3d_t) *dv, float k);
523506

524-
/**
525-
* Compute bounding box around object
526-
* @param b bounding box object
527-
* @param p array of object vertexes
528-
* @param n number of vertexes in object
529-
*/
530-
LSP_DSP_LIB_SYMBOL(void, calc_bound_box, LSP_DSP_LIB_TYPE(bound_box3d_t) *b, const LSP_DSP_LIB_TYPE(point3d_t) *p, size_t n);
531-
532507
/**
533508
* Compute plane equation using three points
534509
* @param v pointer to store plane equation
@@ -637,23 +612,6 @@ LSP_DSP_LIB_SYMBOL(float, calc_area_p3, const LSP_DSP_LIB_TYPE(point3d_t) *p0, c
637612
*/
638613
LSP_DSP_LIB_SYMBOL(float, calc_area_pv, const LSP_DSP_LIB_TYPE(point3d_t) *pv);
639614

640-
/**
641-
* Return length of the projection of the point on the line
642-
* @param p0 projection line point 0
643-
* @param p1 projection line point 1
644-
* @param pp projected point
645-
* @return length of the projection of the point on the line
646-
*/
647-
LSP_DSP_LIB_SYMBOL(float, projection_length_p2, const LSP_DSP_LIB_TYPE(point3d_t) *p0, const LSP_DSP_LIB_TYPE(point3d_t) *p1, const LSP_DSP_LIB_TYPE(point3d_t) *pp);
648-
649-
/**
650-
* Return length of the projection of the vector on another vector
651-
* @param v projection vector
652-
* @param pv projected vector
653-
* @return length of the projection of the vector on another vector
654-
*/
655-
LSP_DSP_LIB_SYMBOL(float, projection_length_v2, const LSP_DSP_LIB_TYPE(vector3d_t) *v, const LSP_DSP_LIB_TYPE(vector3d_t) *pv);
656-
657615
/**
658616
* Estimate the shortest distance to triangle
659617
* @param sp projection point

include/private/dsp/arch/x86/sse/3dmath.h

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,52 +1565,6 @@ namespace lsp
15651565
);
15661566
}
15671567

1568-
void move_point3d_p2(point3d_t *p, const point3d_t *p1, const point3d_t *p2, float k)
1569-
{
1570-
float x0, x1;
1571-
1572-
ARCH_X86_ASM
1573-
(
1574-
__ASM_EMIT("movups (%[p1]), %[x0]") // xmm0 = x0 y0 z0 w0
1575-
__ASM_EMIT("movups (%[p2]), %[x1]") // xmm1 = x1 y1 z1 w1
1576-
__ASM_EMIT("shufps $0x00, %[x2], %[x2]") // xmm2 = k k k k
1577-
__ASM_EMIT("subps %[x0], %[x1]") // xmm1 = dx dy dz dw
1578-
__ASM_EMIT("mulps %[x2], %[x1]") // xmm1 = dx*k dy*k dz*k dw*k
1579-
__ASM_EMIT("addps %[x1], %[x0]") // xmm0 = x0+dx*k y0+dx*k z0+dx*k w0+dw*k
1580-
__ASM_EMIT("andps %[zmask], %[x0]") // xmm0 = x0+dx*k y0+dx*k z0+dx*k 0
1581-
__ASM_EMIT("orps %[omask], %[x0]") // xmm0 = x0+dx*k y0+dx*k z0+dx*k 1
1582-
__ASM_EMIT("movups %[x0], (%[p])")
1583-
: [x0] "=&x" (x0), [x1] "=&x" (x1), [x2] "+x" (k)
1584-
: [p] "r" (p), [p1] "r" (p1), [p2] "r" (p2),
1585-
[zmask] "m" (X_MASK0111),
1586-
[omask] "m" (X_3DPOINT)
1587-
: "memory"
1588-
);
1589-
}
1590-
1591-
void move_point3d_pv(point3d_t *p, const point3d_t *pv, float k)
1592-
{
1593-
float x0, x1;
1594-
1595-
ARCH_X86_ASM
1596-
(
1597-
__ASM_EMIT("movups 0x00(%[pv]), %[x0]") // xmm0 = x0 y0 z0 w0
1598-
__ASM_EMIT("movups 0x10(%[pv]), %[x1]") // xmm1 = x1 y1 z1 w1
1599-
__ASM_EMIT("shufps $0x00, %[x2], %[x2]") // xmm2 = k k k k
1600-
__ASM_EMIT("subps %[x0], %[x1]") // xmm1 = dx dy dz dw
1601-
__ASM_EMIT("mulps %[x2], %[x1]") // xmm1 = dx*k dy*k dz*k dw*k
1602-
__ASM_EMIT("addps %[x1], %[x0]") // xmm0 = x0+dx*k y0+dx*k z0+dx*k w0+dw*k
1603-
__ASM_EMIT("andps %[zmask], %[x0]") // xmm0 = x0+dx*k y0+dx*k z0+dx*k 0
1604-
__ASM_EMIT("orps %[omask], %[x0]") // xmm0 = x0+dx*k y0+dx*k z0+dx*k 1
1605-
__ASM_EMIT("movups %[x0], (%[p])")
1606-
: [x0] "=&x" (x0), [x1] "=&x" (x1), [x2] "+x" (k)
1607-
: [p] "r" (p), [pv] "r" (pv),
1608-
[zmask] "m" (X_MASK0111),
1609-
[omask] "m" (X_3DPOINT)
1610-
: "memory"
1611-
);
1612-
}
1613-
16141568
float calc_area_p3(const point3d_t *p0, const point3d_t *p1, const point3d_t *p2)
16151569
{
16161570
float x0, x1, x2, x3;

src/main/generic/generic.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -540,11 +540,6 @@ namespace lsp
540540
EXPORT1(calc_normal3d_v2);
541541
EXPORT1(calc_normal3d_vv);
542542

543-
EXPORT1(move_point3d_p2);
544-
EXPORT1(move_point3d_pv);
545-
546-
EXPORT1(calc_bound_box);
547-
548543
EXPORT1(calc_plane_p3);
549544
EXPORT1(calc_plane_pv);
550545
EXPORT1(calc_plane_v1p2);
@@ -568,9 +563,6 @@ namespace lsp
568563
EXPORT1(calc_distance_v1);
569564
EXPORT1(calc_sqr_distance_pv);
570565

571-
EXPORT1(projection_length_p2);
572-
EXPORT1(projection_length_v2);
573-
574566
EXPORT1(split_triangle_raw);
575567
EXPORT1(cull_triangle_raw);
576568
EXPORT1(colocation_x2_v1p2);

src/main/x86/sse.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,6 @@
455455
EXPORT1(calc_normal3d_v2);
456456
EXPORT1(calc_normal3d_vv);
457457

458-
EXPORT1(move_point3d_p2);
459-
EXPORT1(move_point3d_pv);
460458
EXPORT1(calc_split_point_p2v1);
461459
EXPORT1(calc_split_point_pvv1);
462460

0 commit comments

Comments
 (0)