This function can potentially be very slow if val and num are both greater than G_MAXUINT32.
| val |
the number to scale |
| num |
the numerator of the scale ratio |
| denom |
the denominator of the scale ratio |
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
util_uint64_scale, util_uint64_scale_round,
util_uint64_scale_int,
util_uint64_scale_int_round,
util_uint64_scale_int_ceil. |