[BACK]Return to array.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / builtin

Diff for /OpenXM_contrib2/asir2000/builtin/array.c between version 1.18 and 1.19

version 1.18, 2001/09/17 01:18:34 version 1.19, 2001/09/17 02:47:07
Line 45 
Line 45 
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  *   *
  * $OpenXM: OpenXM_contrib2/asir2000/builtin/array.c,v 1.17 2001/09/10 05:55:13 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/builtin/array.c,v 1.18 2001/09/17 01:18:34 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "base.h"  #include "base.h"
Line 1438  int **indredp;
Line 1438  int **indredp;
         mat[0] < mat[1] < ... < mat[nred-1] w.r.t the term order          mat[0] < mat[1] < ... < mat[nred-1] w.r.t the term order
 */  */
   
 #define DMA0(a1,a2,a3,u,l)\  
 asm volatile("movl  %2,%%eax; mull  %3; addl    %4,%%eax; adcl  $0,%%edx; movl    %%edx,%0; movl %%eax,%1" :"=g"(u), "=g"(l) :"g"(a1),"g"(a2),"g"(a3) :"ax","dx");  
   
 int red_by_compress(m,p,r,hc,len)  int red_by_compress(m,p,r,hc,len)
 int m;  int m;
 unsigned int *p;  unsigned int *p;
 struct oCM *r;  register struct oCM *r;
 unsigned int hc;  unsigned int hc;
 int len;  register int len;
 {  {
         int k;          unsigned int up,lo;
         register unsigned int up,lo;  
         unsigned int dmy;          unsigned int dmy;
         unsigned int *pj;          unsigned int *pj;
   
         p[r->index] = 0; r++;          p[r->index] = 0; r++;
         for ( k = 1; k < len; k++, r++ ) {          for ( len--; len; len--, r++ ) {
                 pj = p+r->index;                  pj = p+r->index;
                 DMA0(r->c,hc,*pj,up,lo);                  DMA0(r->c,hc,*pj,up,lo);
                 if ( up ) {                  if ( up ) {

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>