export fn does not work for wasm/llvm

This commit is contained in:
Folkert 2023-04-27 10:44:54 +02:00
parent 91079d3844
commit 9357e1ce2b
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -473,7 +473,7 @@ pub fn exportMulWrappedInt(comptime T: type, comptime name: []const u8) void {
@export(f, .{ .name = name ++ @typeName(T), .linkage = .Strong });
}
pub export fn shiftRightZeroFillI128(self: i128, other: u8) i128 {
pub fn shiftRightZeroFillI128(self: i128, other: u8) callconv(.C) i128 {
if (other & 0b1000_0000 > 0) {
return 0;
} else {
@ -481,7 +481,7 @@ pub export fn shiftRightZeroFillI128(self: i128, other: u8) i128 {
}
}
pub export fn shiftRightZeroFillU128(self: u128, other: u8) u128 {
pub fn shiftRightZeroFillU128(self: u128, other: u8) callconv(.C) u128 {
if (other & 0b1000_0000 > 0) {
return 0;
} else {