[cvs] / xvidcore / src / motion / motion_smp.h Repository:
ViewVC logotype

Diff of /xvidcore/src/motion/motion_smp.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4, Mon Feb 27 12:16:04 2006 UTC revision 1.5, Wed Nov 26 01:04:34 2008 UTC
# Line 40  Line 40 
40  static __inline int pthread_num_processors_np()  static __inline int pthread_num_processors_np()
41  {  {
42          DWORD p_aff, s_aff, r = 0;          DWORD p_aff, s_aff, r = 0;
43          GetProcessAffinityMask(GetCurrentProcess(), &p_aff, &s_aff);          GetProcessAffinityMask(GetCurrentProcess(), (PDWORD_PTR) &p_aff, (PDWORD_PTR) &s_aff);
44          for(; p_aff != 0; p_aff>>=1) r += p_aff&1;          for(; p_aff != 0; p_aff>>=1) r += p_aff&1;
45          return r;          return r;
46  }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4