Changeset 54b24c in git


Ignore:
Timestamp:
Jan 31, 2019, 12:34:37 PM (4 years ago)
Author:
Reimer Behrends <behrends@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
aa4d311381250221eea57c0b1aa32b5f6c7a1185
Parents:
d59bc4cf80963a61978ac9d26d399d9a7bcbffd2
git-author:
Reimer Behrends <behrends@gmail.com>2019-01-31 12:34:37+01:00
git-committer:
Reimer Behrends <behrends@gmail.com>2019-01-31 13:53:38+01:00
Message:
Finalizing thread support.
Files:
131 added
6 edited

Legend:

Unmodified
Added
Removed
  • Singular/dyn_modules/bigintm/mod_main.cc

    rd59bc4 r54b24c  
    4545
    4646   // Q: should we call 'bigintm_setup' here??!?!?
    47    VAR return MAX_TOK;
     47   return MAX_TOK;
    4848}
  • Singular/iplib.cc

    rd59bc4 r54b24c  
    10941094#include <pthread.h>
    10951095
    1096 STATIC_VAR std::map<std::string, void *> *dyn_modules;
     1096THREAD_VAR std::map<std::string, void *> *dyn_modules;
    10971097
    10981098bool registered_dyn_module(char *fullname) {
     
    11001100    return false;
    11011101  std::string fname = fullname;
    1102   return !(dyn_modules->count(fname));
     1102  return dyn_modules->count(fname) != 0;
    11031103}
    11041104
  • Singular/misc_ip.cc

    rd59bc4 r54b24c  
    714714
    715715   // set global variable to show memory usage
    716   EXTERN_VAR int om_sing_opt_show_mem;
     716  int om_sing_opt_show_mem;
    717717  if (BVERBOSE(V_SHOW_MEM)) om_sing_opt_show_mem = 1;
    718718  else om_sing_opt_show_mem = 0;
  • factory/globaldefs.h

    rd59bc4 r54b24c  
    1010#define STATIC_INST_VAR static
    1111#define GLOBAL_VAR
     12#define THREAD_VAR
     13#else
     14#define GLOBAL_VAR
     15#define THREAD_VAR __thread
    1216#endif
    1317
  • kernel/linear_algebra/Minor.cc

    rd59bc4 r54b24c  
    836836*/
    837837
    838 int MinorValue::g_rankingStrategy = -1;
     838THREAD_VAR int MinorValue::g_rankingStrategy = -1;
    839839
    840840int MinorValue::getWeight () const
  • libpolys/polys/nc/old.gring.cc

    rd59bc4 r54b24c  
    16551655
    16561656  /* zero exponents !? */
    1657   VAR poly M1    = nc_mm_Mult_p(m1,p_Head(p1,r),r); // M1 = m1 * lt(p1)
    1658   VAR poly M2    = nc_mm_Mult_p(m2,p_Head(p2,r),r); // M2 = m2 * lt(p2)
     1657  poly M1    = nc_mm_Mult_p(m1,p_Head(p1,r),r); // M1 = m1 * lt(p1)
     1658  poly M2    = nc_mm_Mult_p(m2,p_Head(p2,r),r); // M2 = m2 * lt(p2)
    16591659
    16601660#ifdef PDEBUG
     
    16881688  }
    16891689
    1690   VAR number C1  = p_GetCoeff(M1,r);      // C1 = lc(M1)
    1691   VAR number C2  = p_GetCoeff(M2,r);      // C2 = lc(M2)
     1690  number C1  = p_GetCoeff(M1,r);      // C1 = lc(M1)
     1691  number C2  = p_GetCoeff(M2,r);      // C2 = lc(M2)
    16921692
    16931693  /* GCD stuff */
    1694   VAR number C = n_SubringGcd(C1, C2, r->cf);           // C = gcd(C1, C2)
     1694  number C = n_SubringGcd(C1, C2, r->cf);           // C = gcd(C1, C2)
    16951695
    16961696  if (!n_IsOne(C, r->cf))                              // if C != 1
     
    18511851#endif
    18521852  /* pSetComp(m,r)=0? */
    1853   VAR poly M = nc_mm_Mult_pp(m, p1,r);
    1854   VAR number C=p_GetCoeff(M,r);
     1853  poly M = nc_mm_Mult_pp(m, p1,r);
     1854  number C=p_GetCoeff(M,r);
    18551855  M=p_Add_q(M,nc_mm_Mult_p(m,p_LmDeleteAndNext(p_Copy(p1,r),r),r),r); // _pp?
    18561856  q=__p_Mult_nn(q,C,r);
    1857   VAR number MinusOne=n_Init(-1,r->cf);
     1857  number MinusOne=n_Init(-1,r->cf);
    18581858  if (!n_Equal(cQ,MinusOne,r->cf))
    18591859  {
Note: See TracChangeset for help on using the changeset viewer.