Please, help us to better know about our user community by answering the following short survey:
https://forms.gle/wpyrxWi18ox9Z5ae9
Eigen
3.4.0
Loading...
Searching...
No Matches
math_constants.h
1
/*
2
* math_constants.h -
3
* HIP equivalent of the CUDA header of the same name
4
*/
5
6
#ifndef __MATH_CONSTANTS_H__
7
#define __MATH_CONSTANTS_H__
8
9
/* single precision constants */
10
11
#define HIPRT_INF_F __int_as_float(0x7f800000)
12
#define HIPRT_NAN_F __int_as_float(0x7fffffff)
13
#define HIPRT_MIN_DENORM_F __int_as_float(0x00000001)
14
#define HIPRT_MAX_NORMAL_F __int_as_float(0x7f7fffff)
15
#define HIPRT_NEG_ZERO_F __int_as_float(0x80000000)
16
#define HIPRT_ZERO_F 0.0f
17
#define HIPRT_ONE_F 1.0f
18
19
/* double precision constants */
20
#define HIPRT_INF __hiloint2double(0x7ff00000, 0x00000000)
21
#define HIPRT_NAN __hiloint2double(0xfff80000, 0x00000000)
22
23
#endif
Eigen
src
Core
arch
HIP
hcc
math_constants.h
Generated on Thu May 4 2023 18:59:30 for Eigen by
1.9.6