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

SCM Repository

[diderot] Diff of /branches/pure-cfg/src/include/Diderot/types.h
ViewVC logotype

Diff of /branches/pure-cfg/src/include/Diderot/types.h

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

revision 1592, Tue Nov 1 09:41:35 2011 UTC revision 1593, Tue Nov 1 12:28:30 2011 UTC
# Line 81  Line 81 
81    
82  /* typedefs for Diderot types */  /* typedefs for Diderot types */
83  #if defined(DIDEROT_SINGLE_PRECISION)  #if defined(DIDEROT_SINGLE_PRECISION)
 typedef int32_t Diderot_int_t;  
84  typedef float Diderot_real_t;  typedef float Diderot_real_t;
85  typedef vec2f_t Diderot_vec2_t;  typedef vec2f_t Diderot_vec2_t;
86  typedef vec3f_t Diderot_vec3_t;  typedef vec3f_t Diderot_vec3_t;
# Line 92  Line 91 
91  typedef union2f_t Diderot_Mat2x2_t[2];  // represented as row vectors  typedef union2f_t Diderot_Mat2x2_t[2];  // represented as row vectors
92  typedef union3f_t Diderot_Mat3x3_t[3];  // represented as row vectors  typedef union3f_t Diderot_Mat3x3_t[3];  // represented as row vectors
93  typedef union4f_t Diderot_Mat4x4_t[4];  // represented as row vectors  typedef union4f_t Diderot_Mat4x4_t[4];  // represented as row vectors
94  #else  #elif defined(DIDEROT_DOUBLE_PRECISION)
 typedef int64_t Diderot_int_t;  
95  typedef double Diderot_real_t;  typedef double Diderot_real_t;
96  typedef vec2d_t Diderot_vec2_t;  typedef vec2d_t Diderot_vec2_t;
97  typedef vec3d_t Diderot_vec3_t;  typedef vec3d_t Diderot_vec3_t;
# Line 104  Line 102 
102  typedef union2d_t Diderot_Mat2x2_t[2];  // represented as row vectors  typedef union2d_t Diderot_Mat2x2_t[2];  // represented as row vectors
103  typedef union3d_t Diderot_Mat3x3_t[3];  // represented as row vectors  typedef union3d_t Diderot_Mat3x3_t[3];  // represented as row vectors
104  typedef union4d_t Diderot_Mat4x4_t[4];  // represented as row vectors  typedef union4d_t Diderot_Mat4x4_t[4];  // represented as row vectors
105    #else
106    #  error floating-point precision unknown
107    #endif
108    #if defined(DIDEROT_INT)
109    typedef int32_t Diderot_int_t;
110    typedef vec2i_t Diderot_ivec2_t;
111    typedef vec3i_t Diderot_ivec3_t;
112    typedef vec4i_t Diderot_ivec4_t;
113    typedef union2i_t Diderot_iunion2_t;
114    typedef union3i_t Diderot_iunion3_t;
115    typedef union4i_t Diderot_iunion4_t;
116    #elif defined(DIDEROT_LONGINT)
117    typedef int64_t Diderot_int_t;
118    typedef vec2l_t Diderot_ivec2_t;
119    typedef vec3l_t Diderot_ivec3_t;
120    typedef vec4l_t Diderot_ivec4_t;
121    typedef union2l_t Diderot_iunion2_t;
122    typedef union3l_t Diderot_iunion3_t;
123    typedef union4l_t Diderot_iunion4_t;
124    #else
125    #  error integer precision unknown
126  #endif  #endif
127  typedef const char *Diderot_string_t;  typedef const char *Diderot_string_t;
128    

Legend:
Removed from v.1592  
changed lines
  Added in v.1593

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