* [9front] Missing insnan() in /386/include/ape/math.h?
@ 2021-01-01 21:34 Jonas Amoson
2021-01-02 2:39 ` Ori Bernstein
0 siblings, 1 reply; 3+ messages in thread
From: Jonas Amoson @ 2021-01-01 21:34 UTC (permalink / raw)
To: 9front
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 */
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9front] Missing insnan() in /386/include/ape/math.h?
2021-01-01 21:34 [9front] Missing insnan() in /386/include/ape/math.h? Jonas Amoson
@ 2021-01-02 2:39 ` Ori Bernstein
2021-01-02 5:45 ` ori
0 siblings, 1 reply; 3+ messages in thread
From: Ori Bernstein @ 2021-01-02 2:39 UTC (permalink / raw)
To: 9front; +Cc: Jonas Amoson
On Fri, 1 Jan 2021 23:34:27 +0200, Jonas Amoson <jonas.amoson@gmail.com> wrote:
> 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
While you're touching it, do you think you can unify the math.h stuff,
so they don't go out of sync?
/$objtype/include/ape/_math.h:
arch-specific math.h bits
/sys/include/ape/math.h:
arch-independent math.h, including <_math.h>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9front] Missing insnan() in /386/include/ape/math.h?
2021-01-02 2:39 ` Ori Bernstein
@ 2021-01-02 5:45 ` ori
0 siblings, 0 replies; 3+ messages in thread
From: ori @ 2021-01-02 5:45 UTC (permalink / raw)
To: 9front; +Cc: 9front
Quoth Ori Bernstein <ori@eigenstate.org>:
>
> While you're touching it, do you think you can unify the math.h stuff,
> so they don't go out of sync?
>
> /$objtype/include/ape/_math.h:
> arch-specific math.h bits
> /sys/include/ape/math.h:
> arch-independent math.h, including <_math.h>
>
...never mind, I looked and did it. the only differences
between the copies were bugs.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-02 5:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-01 21:34 [9front] Missing insnan() in /386/include/ape/math.h? Jonas Amoson
2021-01-02 2:39 ` Ori Bernstein
2021-01-02 5:45 ` ori
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).