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/cl-diderot.h
ViewVC logotype

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

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

revision 1419, Thu Jun 30 19:42:10 2011 UTC revision 1420, Thu Jun 30 20:41:09 2011 UTC
# Line 25  Line 25 
25  /********** vector math functions **********/  /********** vector math functions **********/
26  #include "cl-inline-matrix.h"  #include "cl-inline-matrix.h"
27    
 inline  float2 scale2f (float s, float2 v)  
 {  
     return (float2)(s * v.s0, s * v.s1);  
 }  
 #if __OPENCL_VERSION__ < 110  
 inline  float3 scale3f (float s, float3 v)  
 {  
     return (float3)(s * v.s0, s * v.s1, s * v.s2, s * v.s3);  
 }  
 #else  
 inline  float3 scale3f (float s, float3 v)  
 {  
     return (float3)(s * v.s0, s * v.s1, s * v.s2);  
 }  
 #endif  
 inline  float4 scale4f (float s, float4 v)  
 {  
     return (float4)(s * v.s0, s * v.s1, s * v.s2, s * v.s3);  
 }  
   
28  /********** other Diderot support functions **********/  /********** other Diderot support functions **********/
29  #include "cl-inline-image.h"  #include "cl-inline-image.h"
30    

Legend:
Removed from v.1419  
changed lines
  Added in v.1420

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