Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /trunk/src/include/Diderot/diderot.h
ViewVC logotype

Diff of /trunk/src/include/Diderot/diderot.h

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

revision 1294, Wed Jun 8 20:01:46 2011 UTC revision 1295, Thu Jun 9 06:42:54 2011 UTC
# Line 51  Line 51 
51    
52  /* function to get information about the CPU configuration */  /* function to get information about the CPU configuration */
53    
54    //! Summary information about the CPU configuration.
55  typedef struct {  typedef struct {
56      int         numHWNodes;             //!< \brief number of (possibly multicore) processors      int         numHWNodes;             //!< \brief number of (possibly multicore) processors
57      int         numHWCores;             //!< \brief total number of (possibly      int         numHWCores;             //!< \brief total number of (possibly
# Line 60  Line 61 
61      int         numThdsPerCore;         //!< \brief number of threads per core      int         numThdsPerCore;         //!< \brief number of threads per core
62  } CPUInfo_t;  } CPUInfo_t;
63    
64    //! \brief function to get information about the CPU configuration
65  bool GetNumCPUs (CPUInfo_t *info);  bool GetNumCPUs (CPUInfo_t *info);
66    
67    
# Line 75  Line 77 
77      return (a < b)? b : a;      return (a < b)? b : a;
78  }  }
79    
80    STATIC_INLINE float clampf (float lo, float hi, float x)
81    {
82        return minf(maxf(lo, x), hi);
83    }
84    
85  STATIC_INLINE float lerpf (float a, float b, float t)  STATIC_INLINE float lerpf (float a, float b, float t)
86  {  {
87      return a + t*(b - a);      return a + t*(b - a);

Legend:
Removed from v.1294  
changed lines
  Added in v.1295

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0