mirror of
https://github.com/ETLCPP/etl.git
synced 2026-05-01 11:29:09 +08:00
Merge branch 'development' of https://github.com/ETLCPP/etl into development
This commit is contained in:
commit
a2f40effa4
@ -80,19 +80,19 @@ SOFTWARE.
|
||||
|
||||
#if defined(ETL_NO_CPP_NAN_SUPPORT)
|
||||
#if defined(NAN)
|
||||
#include "etl/private/diagnostic_useless_cast_push.h"
|
||||
#include "private/diagnostic_useless_cast_push.h"
|
||||
#define ETL_NANF NAN
|
||||
#define ETL_NAN static_cast<double>(NAN)
|
||||
#define ETL_NANL static_cast<long double>(NAN)
|
||||
#define ETL_HAS_NAN true
|
||||
#include "etl/private/diagnostic_pop.h"
|
||||
#include "private/diagnostic_pop.h"
|
||||
#else
|
||||
#include "etl/private/diagnostic_useless_cast_push.h"
|
||||
#include "private/diagnostic_useless_cast_push.h"
|
||||
#define ETL_NANF HUGE_VALF
|
||||
#define ETL_NAN HUGE_VAL
|
||||
#define ETL_NANL HUGE_VALL
|
||||
#define ETL_HAS_NAN false
|
||||
#include "etl/private/diagnostic_pop.h"
|
||||
#include "private/diagnostic_pop.h"
|
||||
#endif
|
||||
#else
|
||||
#define ETL_NANF nanf("")
|
||||
|
||||
@ -462,12 +462,12 @@ namespace etl
|
||||
|
||||
random_pcg()
|
||||
{
|
||||
#include "etl/private/diagnostic_useless_cast_push.h"
|
||||
#include "private/diagnostic_useless_cast_push.h"
|
||||
// An attempt to come up with a unique non-zero seed,
|
||||
// based on the address of the instance.
|
||||
uintptr_t n = reinterpret_cast<uintptr_t>(this);
|
||||
value = static_cast<uint64_t>(n);
|
||||
#include "etl/private/diagnostic_pop.h"
|
||||
#include "private/diagnostic_pop.h"
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user