ntdll: Implement missing 64 bit shifts

Alexandre Julliard julliard at winehq.org
Mon Dec 6 12:39:15 CST 2010


Mike Gibson <mike.gibson at storagecraft.com> writes:

> +/******************************************************************************
> + *        _allshr   (NTDLL.@)
> + *
> + * Right arithmetic shift a 64 bit integer
> + *
> + * PARAMS
> + *  a     [I] Initial number.
> + *  count [I] Number of bits to shift by.
> + *
> + * RETURNS
> + *  The value of a following the shift.
> + */
> +LONGLONG WINAPI _allshr( LONGLONG a, INT count )
> +{
> +    return a >> count;
> +}

There's no guarantee that this would be an arithmetic shift, it's
compiler-dependent.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list