mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-22 01:18:36 +03:00
9 lines
263 B
Zig
9 lines
263 B
Zig
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));
|
|
}
|