File tree Expand file tree Collapse file tree 1 file changed +4
-29
lines changed 
libclc/libspirv/lib/generic/common Expand file tree Collapse file tree 1 file changed +4
-29
lines changed Original file line number Diff line number Diff line change 99#include  <clc/common/clc_smoothstep.h> 
1010#include  <libspirv/spirv.h> 
1111
12- #define  SMOOTHSTEP_SINGLE_DEF (X_TYPE )                                          \
13-   _CLC_OVERLOAD _CLC_DEF X_TYPE __spirv_ocl_smoothstep(                        \
14-       X_TYPE edge0, X_TYPE edge1, X_TYPE x) {                                  \
15-     return __clc_smoothstep(edge0, edge1, x);                                  \
16-   }
17- 
18- #define  SMOOTHSTEP_DEF (type )                                                   \
19-   SMOOTHSTEP_SINGLE_DEF(type)                                                  \
20-   SMOOTHSTEP_SINGLE_DEF(type##2)                                               \
21-   SMOOTHSTEP_SINGLE_DEF(type##3)                                               \
22-   SMOOTHSTEP_SINGLE_DEF(type##4)                                               \
23-   SMOOTHSTEP_SINGLE_DEF(type##8)                                               \
24-   SMOOTHSTEP_SINGLE_DEF(type##16)
25- 
26- SMOOTHSTEP_DEF (float )
27- 
28- #ifdef  cl_khr_fp64 
29- #pragma  OPENCL EXTENSION cl_khr_fp64 : enable
30- 
31- SMOOTHSTEP_DEF (double );
32- 
33- #endif 
34- 
35- #ifdef  cl_khr_fp16 
36- #pragma  OPENCL EXTENSION cl_khr_fp16 : enable
37- 
38- SMOOTHSTEP_DEF (half );
39- 
40- #endif 
12+ #define  __CLC_FUNCTION  __spirv_ocl_smoothstep
13+ #define  __CLC_IMPL_FUNCTION (x ) __clc_smoothstep
14+ #define  __CLC_BODY  <clc/shared/ternary_def.inc>
15+ #include  <clc/math/gentype.inc> 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments