9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Jonas Amoson <jonas.amoson@gmail.com>
To: 9front@9front.org
Subject: [9front] Missing insnan() in /386/include/ape/math.h?
Date: Fri, 1 Jan 2021 23:34:27 +0200	[thread overview]
Message-ID: <CAF46DJ5gpwOyD2854HX5y+VW4evmFZ6gThOf9As2czNY25o6wg@mail.gmail.com> (raw)

Hi!
I looks (to me) like ape/math.h for 386 is missing the following two lines:

#define isnan(x) isNaN(x)
#define isinf(x) isInf(x, 0)

They are present in
/{68020|arm|arm64|power|sparc|sparc64|amd64}/include/ape/math.h. It
even looks like the lines are present for 386 in the stock Bell Lab's
distro. Any known reason for this irregularity? isnan() is used by
Netsurf's SVG-library.

/Jonas A

--- orig_math.h Sat Oct  5 02:33:06 2019
+++ math.h Fri Jan  1 01:30:47 2021
@@ -73,4 +73,7 @@
 }
 #endif

+#define isnan(x) isNaN(x)
+#define isinf(x) isInf(x, 0)
+
 #endif /* __MATH */

             reply	other threads:[~2021-01-01 21:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-01 21:34 Jonas Amoson [this message]
2021-01-02  2:39 ` Ori Bernstein
2021-01-02  5:45   ` ori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAF46DJ5gpwOyD2854HX5y+VW4evmFZ6gThOf9As2czNY25o6wg@mail.gmail.com \
    --to=jonas.amoson@gmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).