pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: log1pl expm1l (Re: math/py-scipy import failure on netbsd-current



03.05.2022 01:18:41 Makoto Fujiwara <makoto%ki.nu@localhost>:
> +#ifdef __NetBSD__
> +#define log1pl(x) logl(1.0f+(x))
> +#define expm1l(x) expl(x) - 1
> +#endif

The replacement text of expm1l must be enclosed in parentheses.

The x in expm1l must be enclosed in parentheses since it could be a comma expression.

Stylistically, I would replace 1.0f with 1.0L, add spaces around the + and replace the 1 with 1.0L.

Roland


Home | Main Index | Thread Index | Old Index