mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-02 08:44:12 +08:00
Replaced a couple more uint16_t with unsigned short
This commit is contained in:
parent
0423b66187
commit
1ca8c1ec97
@ -48,7 +48,7 @@ namespace Eigen {
|
|||||||
|
|
||||||
namespace internal {
|
namespace internal {
|
||||||
|
|
||||||
static inline EIGEN_DEVICE_FUNC __half raw_uint16_to_half(uint16_t x);
|
static inline EIGEN_DEVICE_FUNC __half raw_uint16_to_half(unsigned short x);
|
||||||
static inline EIGEN_DEVICE_FUNC __half float_to_half_rtne(float ff);
|
static inline EIGEN_DEVICE_FUNC __half float_to_half_rtne(float ff);
|
||||||
static inline EIGEN_DEVICE_FUNC float half_to_float(__half h);
|
static inline EIGEN_DEVICE_FUNC float half_to_float(__half h);
|
||||||
|
|
||||||
@ -203,7 +203,7 @@ static inline EIGEN_DEVICE_FUNC bool operator > (const half& a, const half& b) {
|
|||||||
|
|
||||||
namespace internal {
|
namespace internal {
|
||||||
|
|
||||||
static inline EIGEN_DEVICE_FUNC __half raw_uint16_to_half(uint16_t x) {
|
static inline EIGEN_DEVICE_FUNC __half raw_uint16_to_half(unsigned short x) {
|
||||||
__half h;
|
__half h;
|
||||||
h.x = x;
|
h.x = x;
|
||||||
return h;
|
return h;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user