Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Everyone's head is a cheap movie show." -- Jeff G. Bone


computers / comp.os.vms / are infinities working yet on x86?

SubjectAuthor
o are infinities working yet on x86?Craig A. Berry

1
are infinities working yet on x86?

<ucb39d$6j8f$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29426&group=comp.os.vms#29426

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: are infinities working yet on x86?
Date: Fri, 25 Aug 2023 15:34:50 -0500
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <ucb39d$6j8f$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 25 Aug 2023 20:34:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c40398693292bb950505d679a82ea481";
logging-data="216335"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199A8z/tZse2MrsPCVXCCjrSM9eVqQWQrU="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.14.0
Cancel-Lock: sha1:V1jAchxGJ7n917m88s6fkhKIvo8=
Content-Language: en-US
 by: Craig A. Berry - Fri, 25 Aug 2023 20:34 UTC

Apologies if this is a known problem but I didn't find anything in the
release notes that quite seemed to match. Consider the following
program and its output:

$ type powtest.c
#include <stdio.h>
#include <math.h>
#include <float.h>
#include <errno.h>
main()
{ double right = 1000.00000000000;
double left = DBL_MAX;
double x;
errno = 0;
x = pow(left, right);
printf("%d, %f\n", errno, x);
if (errno != 0) perror("pow");
printf("Is x infinity? %d\n", isinf(x));
} $ cc powtest
$ link powtest
$ run powtest
34,
179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000.000000
pow: result too large
Is x infinity? 0

On Itanium, it returns "Infinity" instead of that really big number in
the first line and "1" instead of "0" in the last line for the return
value if isinf(x).

I'm running this with the new update 1 installed:

$ cc/vers
VSI C X7.4-785 (GEM 50X65) on OpenVMS x86_64 V9.2-1

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor