mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-06-21 23:08:45 +03:00

* update zig * pkg/fontconfig: clean up @as * pkg/freetype,harfbuzz: clean up @as * pkg/imgui: clean up @as * pkg/macos: clean up @as * pkg/pixman,utf8proc: clean up @as * clean up @as * lots more @as cleanup * undo flatpak changes * clean up @as
9 lines
261 B
Zig
9 lines
261 B
Zig
const std = @import("std");
|
|
const c = @import("c.zig");
|
|
|
|
/// 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));
|
|
}
|