summaryrefslogtreecommitdiff
path: root/pkg/freetype/computations.zig
blob: fc9b2ccb2f7cebf86cfba52d1111d3c46f960924 (plain)
1
2
3
4
5
6
7
8
const std = @import("std");
const c = @import("c.zig").c;

/// Compute (a*b)/0x10000 with maximum accuracy. Its main use is to multiply
/// a given value by a 16.16 fixed-point factor.
pub fn mulFix(a: i32, b: i32) i32 {
    return @intCast(c.FT_MulFix(a, b));
}