uint64_scale_ceil


Description:


public uint64 uint64_scale_ceil (uint64 val, uint64 num, uint64 denom)

Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision.

This function can potentially be very slow if val and num are both greater than G_MAXUINT32.

Parameters:

val

the number to scale

num

the numerator of the scale ratio

denom

the denominator of the scale ratio

Returns:

val * num / denom. In the case of an overflow, this function returns G_MAXUINT64. If the result is not exactly representable as an integer, it is rounded up. See also uint64_scale, uint64_scale_round, uint64_scale_int, uint64_scale_int_round, uint64_scale_int_ceil.


Namespace: Gst.Util
Package: gstreamer-1.0



2022 vala-language.org