view src/build-msvctools/math/nan.c @ 6161:8fcac4d6d983 release

of-queueing: Fix syntax error with Octave 7 (bug #62314). * src/of-queueing-1-octave7.patch: Add new file. * dist-files.mk: Include new patch.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 14 Apr 2022 19:27:13 +0200
parents f8299bb6c872
children
line wrap: on
line source

#include <math.h>
#include <ymath.h>

static __inline double __fast_nan (const char* tagp)
{ return _Nan._Double; }

static __inline double __fast_nanf (const char* tagp)
{ return _FNan._Float; }

static __inline long double __fast_nanl (const char* tagp)
{ return _LNan._Long_double; }

double nan (const char* tagp) { return __fast_nan (tagp); }
float nanf (const char* tagp) { return __fast_nanf (tagp); }
long double nanl (const char* tagp) { return __fast_nanl (tagp); }