On Thu, 28 Jun 2001, Craig A. Berry wrote:
> At 01:00 PM 6/28/2001 -0700, Peter Prymmer wrote:
>
>
> >Here is a quick workaround that will at least let Time/HiRes.xs compile
> >on the VAX:
>
> Possibly this library routine would help us, declaring quad as an array of
> two longwords. Ironic that a single instruction on the VAX does not have an
> appropriate C library equivalent. Sorry I don't have time to look at this
> more closely.
>
> LIB$EDIV
>
> The Extended-Precision Divide routine performs extended-precision
> division. LIB$EDIV makes the VAX EDIV instruction available as a
> callable routine.
>
> Format
>
> LIB$EDIV longword-integer-divisor ,quadword-integer-dividend
>
> ,longword-integer-quotient ,remainder
Thanks for the pointer... must find my SYS$ and LIB$ references ...
they've been stolen. Unfortunately my VAX VMS V6.2 + DEC C 5.3 copy of
lib$routines.h has this vague prototype:
$ sea lib$routines.h ediv
/* LIB$EDIV */
/* LIB$EDIV makes the VAX EDIV */
unsigned int lib$ediv(__unknown_params);
So this does indeed look promising...
Peter Prymmer