Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit 93226fe

Browse files
authored
Export unpacking symbols (#12)
1 parent 3663870 commit 93226fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/lib.zig

+7
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,18 @@ comptime {
3232
fn encode(in: *const FL.Vector, out: *FL.PackedBytes(W)) callconv(.C) void {
3333
@call(.always_inline, BitPacking(FL).encode, .{ W, in, out });
3434
}
35+
36+
fn decode(in: *const FL.PackedBytes(W), out: *FL.Vector) callconv(.C) void {
37+
@call(.always_inline, BitPacking(FL).decode, .{ W, in, out });
38+
}
3539
};
3640

3741
@export(Wrapper.encode, .{
3842
.name = "fl_bitpack_" ++ @typeName(E) ++ "_" ++ @typeName(std.meta.Int(.unsigned, W)),
3943
});
44+
@export(Wrapper.decode, .{
45+
.name = "fl_bitunpack_" ++ @typeName(E) ++ "_" ++ @typeName(std.meta.Int(.unsigned, W)),
46+
});
4047
}
4148
}
4249
}

0 commit comments

Comments
 (0)