diff options
Diffstat (limited to 'comms/libfec/files')
-rw-r--r-- | comms/libfec/files/patch-dotprod.c | 21 | ||||
-rw-r--r-- | comms/libfec/files/patch-fec.c | 44 | ||||
-rw-r--r-- | comms/libfec/files/patch-fec.h | 11 |
3 files changed, 0 insertions, 76 deletions
diff --git a/comms/libfec/files/patch-dotprod.c b/comms/libfec/files/patch-dotprod.c deleted file mode 100644 index a308e7b07bb9..000000000000 --- a/comms/libfec/files/patch-dotprod.c +++ /dev/null @@ -1,21 +0,0 @@ ---- dotprod.c.orig 2006-10-13 03:10:53.000000000 +0200 -+++ dotprod.c 2014-01-17 12:35:33.000000000 +0100 -@@ -54,12 +54,16 @@ - switch(Cpu_mode){ - case PORT: - default: -+ freedp_port(p); -+ break; - #ifdef __i386__ - case MMX: - case SSE: -- return freedp_mmx(p); -+ freedp_mmx(p); -+ break; - case SSE2: -- return freedp_sse2(p); -+ freedp_sse2(p); -+ break; - #endif - #ifdef __VEC__ - case ALTIVEC: diff --git a/comms/libfec/files/patch-fec.c b/comms/libfec/files/patch-fec.c deleted file mode 100644 index 47fd34954eb9..000000000000 --- a/comms/libfec/files/patch-fec.c +++ /dev/null @@ -1,44 +0,0 @@ ---- fec.c.orig Sat Dec 9 22:04:49 2006 -+++ fec.c Sat Dec 9 22:01:43 2006 -@@ -3,6 +3,10 @@ - */ - - #include <stdio.h> -+#include <errno.h> -+#include <stdlib.h> -+#include <sys/param.h> -+ - #include "fec.h" - - unsigned char Partab[256]; -@@ -64,3 +68,30 @@ - 5, 6, 6, 7, 6, 7, 7, 8, - }; - -+#if __FreeBSD_version <700000 -+ -+int -+posix_memalign(void **memptr, size_t alignment, size_t size) -+{ -+ int err; -+ void *result; -+ -+ /* Make sure that alignment is a large enough power of 2. */ -+ if (((alignment - 1) & alignment) != 0 || alignment < sizeof(void *)) -+ return (EINVAL); -+ -+ /* -+ * (size | alignment) is enough to assure the requested alignment, since -+ * the allocator always allocates power-of-two blocks. -+ */ -+ err = errno; /* Protect errno against changes in pubrealloc(). */ -+ result = malloc(size | alignment); -+ errno = err; -+ -+ if (result == NULL) -+ return (ENOMEM); -+ -+ *memptr = result; -+ return (0); -+} -+#endif diff --git a/comms/libfec/files/patch-fec.h b/comms/libfec/files/patch-fec.h deleted file mode 100644 index 831d3ca1ff3b..000000000000 --- a/comms/libfec/files/patch-fec.h +++ /dev/null @@ -1,11 +0,0 @@ ---- fec.h.orig 2007-07-02 13:26:12.000000000 -0400 -+++ fec.h 2007-07-02 13:38:26.000000000 -0400 -@@ -262,7 +262,7 @@ - void find_cpu_mode(void); /* Call this once at startup to set Cpu_mode */ - - /* Determine parity of argument: 1 = odd, 0 = even */ --#ifdef __i386__ -+#ifdef notyet__i386__ - static inline int parityb(unsigned char x){ - __asm__ __volatile__ ("test %1,%1;setpo %0" : "=g"(x) : "r" (x)); - return x; |