diff liboctave/numeric/lo-mappers.cc @ 32857:00e493a27de2

Deprecate lo_ieee_ functions that are part of C99 or C++11. * lo-ieee.h (__lo_ieee_isnan, __lo_ieee_isfinite, __lo_ieee_isinf, __lo_ieee_signbit, __lo_ieee_float_isnan, __lo_ieee_float_isfinite, __lo_ieee_float_isinf, __lo_ieee_float_signbit): Mark functions as deprecated. * lo-ieee.cc, mex.cc, oct-stream.cc, pr-output.cc, ov-complex.h, ov-float.h, ov-flt-complex.h, ov-scalar.h, dSparse.h, Faddeeva.cc, lo-mappers.cc, oct-norm.cc, randgamma.cc, randpoisson.cc, lo-utils.cc: Avoid using deprecated functions.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 25 Jan 2024 20:15:37 +0100
parents 4b601ca024d5
children
line wrap: on
line diff
--- a/liboctave/numeric/lo-mappers.cc	Fri Jan 26 08:40:11 2024 +0100
+++ b/liboctave/numeric/lo-mappers.cc	Thu Jan 25 20:15:37 2024 +0100
@@ -178,9 +178,9 @@
 }
 
 bool
-negative_sign (double x) { return __lo_ieee_signbit (x); }
+negative_sign (double x) { return signbit (x); }
 bool
-negative_sign (float x) { return __lo_ieee_float_signbit (x); }
+negative_sign (float x) { return signbit (x); }
 
 // Sometimes you need a large integer, but not always.