[PATCH:libX11 8/8] Deal with the limited range of VAX floating point numbers when compiling for VAX.
--- src/xcms/cmsTrig.c | 4 1 file changed, 4 insertions(+) diff --git a/src/xcms/cmsTrig.c b/src/xcms/cmsTrig.c index a917b78..fc65d9b 100644 --- a/src/xcms/cmsTrig.c +++ b/src/xcms/cmsTrig.c @@ -71,7 +71,11 @@ _XcmsModuloF( #define XCMS_SIXTHPI 0.523598775598298820 #define XCMS_RADIANS(d)((d) * XCMS_PI / 180.0) #define XCMS_DEGREES(r)((r) * 180.0 / XCMS_PI) +#ifdef __vax__ +#define XCMS_X6_UNDERFLOWS (3.784659e-07) /* X**6 almost underflows*/ +#else #define XCMS_X6_UNDERFLOWS (4.209340e-52) /* X**6 almost underflows */ +#endif #define XCMS_X16_UNDERFLOWS(5.421010e-20) /* X**16 almost underflows*/ #define XCMS_CHAR_BIT 8 #define XCMS_LONG_MAX 0x7FFF -- 1.8.2.3 ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH:libX11 8/8] Deal with the limited range of VAX floating point numbers when compiling for VAX.
People still compile X for VAX? I had no idea... -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH:libX11 8/8] Deal with the limited range of VAX floating point numbers when compiling for VAX.
On Sun, Jun 02, 2013 at 04:11:08PM -0700, Alan Coopersmith wrote: > People still compile X for VAX? I had no idea... Yes, NetBSD-6.1 was released for vax, including X. http://netbsd.org/ports/vax/ Of course, it was cross-compiled. Thomas ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH:libX11 8/8] Deal with the limited range of VAX floating point numbers when compiling for VAX.
On 06/ 2/13 04:19 PM, Thomas Klausner wrote: On Sun, Jun 02, 2013 at 04:11:08PM -0700, Alan Coopersmith wrote: People still compile X for VAX? I had no idea... Yes, NetBSD-6.1 was released for vax, including X. http://netbsd.org/ports/vax/ Of course, it was cross-compiled. Okay - but you're responsible for maintaining VAX support then - no one else will notice if VAX breaks. Pushed the patch to git master: To ssh://git.freedesktop.org/git/xorg/lib/libX11 0a48235..ed3d830 master -> master -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH:libX11 8/8] Deal with the limited range of VAX floating point numbers when compiling for VAX.
On Thu, Jun 06, 2013 at 11:14:07PM -0700, Alan Coopersmith wrote: > On 06/ 2/13 04:19 PM, Thomas Klausner wrote: > >On Sun, Jun 02, 2013 at 04:11:08PM -0700, Alan Coopersmith wrote: > >>People still compile X for VAX? I had no idea... > > > >Yes, NetBSD-6.1 was released for vax, including X. > > > >http://netbsd.org/ports/vax/ > > > >Of course, it was cross-compiled. > > Okay - but you're responsible for maintaining VAX support then - no one else > will notice if VAX breaks. Understood. > Pushed the patch to git master: > > To ssh://git.freedesktop.org/git/xorg/lib/libX11 >0a48235..ed3d830 master -> master Thanks, Thomas ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel