Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:48:54

0001 #pragma once
0002 
0003 #if defined(__CUDACC__) || defined(__CUDABE__)
0004 #    define LEAF_FUNC __forceinline__ __device__
0005 #else
0006 #    define LEAF_FUNC inline
0007 #endif
0008 
0009 
0010 #define RT_DEFAULT_MAX 1.e27f
0011 
0012 #if defined(__CUDACC__)
0013 #include "math_constants.h"
0014 #else
0015 
0016 union uif_t 
0017 {
0018     unsigned u ; 
0019     int i ; 
0020     float f ; 
0021 };
0022 
0023 LEAF_FUNC
0024 float __int_as_float(int i)
0025 {
0026     uif_t uif ; 
0027     uif.i = i ; 
0028     return uif.f ; 
0029 }
0030 
0031 #define CUDART_INF_F            __int_as_float(0x7f800000)
0032 #define CUDART_PI_F             3.141592654f
0033 
0034 #endif
0035 
0036 
0037