403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/comms/libfec/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/comms/libfec/files/patch-dotprod__av.c
--- dotprod_av.c.orig	2019-02-05 19:37:00 UTC
+++ dotprod_av.c
@@ -3,6 +3,7 @@
  * Copyright 2004 Phil Karn
  * May be used under the terms of the GNU Lesser General Public License (LGPL)
  */
+#include <altivec.h>
 #include <stdlib.h>
 #include "fec.h"
 
@@ -70,7 +71,7 @@ long dotprod_av(void *p,signed short a[]){
   nblocks = (dp->len+al-1)/8+1;
   
   /* Sum into four vectors each holding four 32-bit partial sums */
-  sums3 = sums2 = sums1 = sums0 = (vector signed int)(0);
+  sums3 = sums2 = sums1 = sums0 = (vector signed int){0};
   while(nblocks >= 4){
     sums0 = vec_msums(ar[nblocks-1],d[nblocks-1],sums0);
     sums1 = vec_msums(ar[nblocks-2],d[nblocks-2],sums1);
@@ -85,7 +86,7 @@ long dotprod_av(void *p,signed short a[]){
     sums0 = vec_msums(ar[nblocks],d[nblocks],sums0);
   }
   /* Sum 4 partial sums into final result */
-  s.v = vec_sums(sums0,(vector signed int)(0));
+  s.v = vec_sums(sums0,(vector signed int){0});
   
   return s.w[3];
 }

Youez - 2016 - github.com/yon3zu
LinuXploit