From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: 4.1.1 doesn't compile
Date: Wed, 25 Jun 2003 16:32:06 +0000 [thread overview]
Message-ID: <1030625163206.ZM9941@candle.brasslantern.com> (raw)
In-Reply-To: <21028.1056534512@gmcs3.local>
On Jun 25, 11:48am, Oliver Kiddle wrote:
} Subject: Re: 4.1.1 doesn't compile
}
} #define DIGBUFSIZE ((int)(((sizeof(zlong) * 8) - 1) * 0.30103) + 3)
}
} But I don't understand what the calculation is doing. Anyone
} else have any idea?
It's computing the number of decimal digits necessary to represent the
largest number that can also be represented by the binary digits in a
variable of type zlong. The -1 and +3 adjust for floating point rounding
errors, a leading "-" for negative numbers, and the trailing NUL byte.
next prev parent reply other threads:[~2003-06-25 16:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-24 13:31 Tomi Vainio - Sun Finland
2003-06-24 15:29 ` Oliver Kiddle
2003-06-25 8:20 ` Tomi Vainio - Sun Finland
2003-06-25 9:48 ` Oliver Kiddle
2003-06-25 11:58 ` Tomi Vainio - Sun Finland
2003-06-25 13:04 ` Tomi Vainio - Sun Finland
2003-06-25 13:45 ` Oliver Kiddle
2003-06-25 16:32 ` Bart Schaefer [this message]
2003-06-26 11:23 ` Zefram
2003-06-27 11:08 ` Tomi Vainio - Sun Finland
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=1030625163206.ZM9941@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).