William A. Rowe, Jr. wrote:
Just as a trivial example of using apr_time_sec_get... it helps us
avoid casting over in the new poll/unix/poll.c line 164, where
tv.tv_sec = apr_time_sec_get(timeout);
avoids a compiler emit that we are downcasting an in64 to a long.
What's your strategy for
At 11:31 AM 7/11/2002, Brian Pane wrote:
I don't see a way to eliminate the / 1000 to convert usec to
msec. But we may be able to do all the math in 32-bit mode, by
limiting the maximum timeout to the number of milliseconds that
will fit in 32 bits, which works out to a max timeout of about
50
William A. Rowe, Jr. wrote:
At 11:31 AM 7/11/2002, Brian Pane wrote:
I don't see a way to eliminate the / 1000 to convert usec to
msec. But we may be able to do all the math in 32-bit mode, by
limiting the maximum timeout to the number of milliseconds that
will fit in 32 bits, which works out to
At 02:49 PM 07/11/2002, William A. Rowe, Jr. wrote:
The code follows, patch attached is hard to follow. [Like my code
isn't :o]
/* Number of binary microseconds per second is (2^20)
* to keep the math fast and simple [binary arithmetic.]
*/
#define APR_BUSEC_BITS 20
#define APR_BUSEC_PER_SEC
At 02:13 PM 7/11/2002, Brian Pane wrote:
William A. Rowe, Jr. wrote:
apr_int32_t apr_time_sec_get(time) deprecates apr_time_sec(time)
apr_int32_t apr_time_msec_get(time) deprecates apr_time_msec(time)
apr_int32_t apr_time_usec_get(time) deprecates apr_time_usec(time)
apr_int32_t
I'm assuming this was meant for the whole list. :)
From: William A. Rowe, Jr. [EMAIL PROTECTED]
Subject: Re: [PATCH 3] example binary BUSEC for discussion
At 02:18 PM 7/11/2002, you wrote:
At 02:49 PM 07/11/2002, William A. Rowe, Jr. wrote:
The code follows, patch attached is hard to follow
Guys, everyone here admits we are lousy at inventing names...
all suggestions for better names of these macros are welcome!
At 01:49 PM 7/11/2002, William A. Rowe, Jr. wrote:
Actually, here is my current math, with optimized forms for specific
situations we encounter often (aprox. limits are given