From owner-freebsd-questions@FreeBSD.ORG Thu Dec 15 02:06:17 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 633AF106566B for ; Thu, 15 Dec 2011 02:06:17 +0000 (UTC) (envelope-from hg@queue.to) Received: from pickle.queue.to (pickle.queue.to [71.180.69.18]) by mx1.freebsd.org (Postfix) with ESMTP id 05AC38FC0C for ; Thu, 15 Dec 2011 02:06:16 +0000 (UTC) Received: (qmail 33628 invoked from network); 14 Dec 2011 21:06:16 -0500 Received: from cally.queue.to (172.16.0.6) by pickle.queue.to with ESMTP; 14 Dec 2011 21:06:16 -0500 Message-ID: <4EE95618.1040404@queue.to> Date: Wed, 14 Dec 2011 21:06:16 -0500 From: Howard Goldstein User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111108 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org, freebsd@pki2.com References: <1323834341.50157.2.camel@btw.pki2.com> In-Reply-To: <1323834341.50157.2.camel@btw.pki2.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: [PATCH] Re: Forward error correction routines? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2011 02:06:17 -0000 On 12/13/2011 22:45, Dennis Glatting wrote: > I am looking for /any/ forward error correction code under FreeBSD, > whether Hamming Codes, Golay Codes, Reed-Solomon, BCH codes, etc. or > convolution encoders/decoders. > > All I've found is: > > * libfec, which only runs under i386 (I am 64 bit), and Here are patches allowing libfec to compile on amd64. I'll submit a pr. *** libfec/Makefile.orig 2011-12-14 20:34:24.653733990 -0500 --- libfec/Makefile 2011-12-14 20:50:52.306036812 -0500 *************** *** 22,31 **** GNU_CONFIGURE= yes USE_GMAKE= yes USE_LDCONFIG= yes ! ONLY_FOR_ARCHS= i386 PLIST_FILES= include/fec.h lib/libfec.so lib/libfec.a post-patch: @${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/makefile.in .include --- 22,35 ---- GNU_CONFIGURE= yes USE_GMAKE= yes USE_LDCONFIG= yes ! ONLY_FOR_ARCHS= i386 amd64 PLIST_FILES= include/fec.h lib/libfec.so lib/libfec.a post-patch: @${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/makefile.in .include + + .if ${ARCH} == "amd64" + CFLAGS+= -fPIC + .endif *** /dev/null 2011-12-14 20:57:48.000000000 -0500 --- libfec/files/patch-dotprod.c 2011-12-14 20:44:01.336529860 -0500 *************** *** 0 **** --- 1,12 ---- + *** dotprod.c 2006-10-12 21:10:53.000000000 -0400 + --- ../../foowork/fec-3.0.1/dotprod.c 2011-12-14 20:43:00.132752233 -0500 + *************** + *** 54,59 **** + --- 54,60 ---- + switch(Cpu_mode){ + case PORT: + default: + + return feedp_port(p); + #ifdef __i386__ + case MMX: + case SSE: