YARP
Yet Another Robot Platform
numeric.h File Reference
#include <sys/types.h>
#include <cstddef>
#include <cstdint>
#include <cfloat>
#include <cinttypes>
#include <yarp/conf/api.h>
+ Include dependency graph for numeric.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 yarp
 The main, catch-all namespace for YARP.
 
 yarp::conf
 

Macros

#define YARP_HAS_SYS_TYPES_H
 
#define YARP_LITTLE_ENDIAN
 
#define YARP_HAS_FLOAT128_T
 
#define YARP_FLOAT32_IS_IEC559   1
 
#define YARP_FLOAT64_IS_IEC559   1
 
#define YARP_FLOAT128_IS_IEC559   1
 
#define YARP_FLT_EXP_DIG   3
 
#define YARP_DBL_EXP_DIG   4
 
#define YARP_LDBL_EXP_DIG   5
 
#define YARP_INT32_FMT   PRId32
 
#define YARP_INT64_FMT   PRId64
 

Typedefs

typedef float yarp::conf::float32_t
 
typedef double yarp::conf::float64_t
 
typedef std::int32_t yarp::conf::vocab32_t
 
typedef long double yarp::conf::float128_t
 
typedef ::ssize_t yarp::conf::ssize_t
 
typedef std::int8_t YARP_INT8
 
typedef std::int16_t YARP_INT16
 
typedef std::int32_t YARP_INT32
 
typedef std::int64_t YARP_INT64
 
typedef yarp::conf::float32_t YARP_FLOAT32
 
typedef yarp::conf::float64_t YARP_FLOAT64
 
typedef yarp::conf::ssize_t YARP_SSIZE_T
 

Functions

template<class T >
constexpr const T & yarp::conf::clamp (const T &v, const T &lo, const T &hi)
 
template<class T , class Compare >
constexpr const T & yarp::conf::clamp (const T &v, const T &lo, const T &hi, Compare comp)
 

Macro Definition Documentation

◆ YARP_DBL_EXP_DIG

#define YARP_DBL_EXP_DIG   4

Definition at line 83 of file numeric.h.

◆ YARP_FLOAT128_IS_IEC559

#define YARP_FLOAT128_IS_IEC559   1

Definition at line 32 of file numeric.h.

◆ YARP_FLOAT32_IS_IEC559

#define YARP_FLOAT32_IS_IEC559   1

Definition at line 30 of file numeric.h.

◆ YARP_FLOAT64_IS_IEC559

#define YARP_FLOAT64_IS_IEC559   1

Definition at line 31 of file numeric.h.

◆ YARP_FLT_EXP_DIG

#define YARP_FLT_EXP_DIG   3

Definition at line 82 of file numeric.h.

◆ YARP_HAS_FLOAT128_T

#define YARP_HAS_FLOAT128_T

Definition at line 29 of file numeric.h.

◆ YARP_HAS_SYS_TYPES_H

#define YARP_HAS_SYS_TYPES_H

Definition at line 12 of file numeric.h.

◆ YARP_INT32_FMT

#define YARP_INT32_FMT   PRId32

Definition at line 96 of file numeric.h.

◆ YARP_INT64_FMT

#define YARP_INT64_FMT   PRId64

Definition at line 97 of file numeric.h.

◆ YARP_LDBL_EXP_DIG

#define YARP_LDBL_EXP_DIG   5

Definition at line 84 of file numeric.h.

◆ YARP_LITTLE_ENDIAN

#define YARP_LITTLE_ENDIAN

Definition at line 27 of file numeric.h.

Typedef Documentation

◆ YARP_FLOAT32

Definition at line 93 of file numeric.h.

◆ YARP_FLOAT64

Definition at line 94 of file numeric.h.

◆ YARP_INT16

typedef std::int16_t YARP_INT16

Definition at line 90 of file numeric.h.

◆ YARP_INT32

typedef std::int32_t YARP_INT32

Definition at line 91 of file numeric.h.

◆ YARP_INT64

typedef std::int64_t YARP_INT64

Definition at line 92 of file numeric.h.

◆ YARP_INT8

typedef std::int8_t YARP_INT8

Definition at line 89 of file numeric.h.

◆ YARP_SSIZE_T

Definition at line 95 of file numeric.h.