aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-22 20:56:30 -0400
committerGitHub <noreply@github.com>2021-05-22 20:56:30 -0400
commit1c636e2564e2fc2e8e4b6b1edbc782592ee3d2d7 (patch)
tree5311dc81615ff9efa2b4840070371f54182f8bee /lib/std/math.zig
parent9baf8917725ede02d9fc1aeebe253842174ee57b (diff)
parent563ea60a86a733f53f2394a11cb9ec4e56063fa3 (diff)
downloadzig-1c636e2564e2fc2e8e4b6b1edbc782592ee3d2d7.tar.gz
zig-1c636e2564e2fc2e8e4b6b1edbc782592ee3d2d7.zip
Merge pull request #8844 from ifreund/inline
Support inline keyword as well as callconv(.Inline)
Diffstat (limited to 'lib/std/math.zig')
-rw-r--r--lib/std/math.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/math.zig b/lib/std/math.zig
index 6606a55034..4605c46970 100644
--- a/lib/std/math.zig
+++ b/lib/std/math.zig
@@ -1334,7 +1334,7 @@ test "math.comptime" {
/// Returns a mask of all ones if value is true,
/// and a mask of all zeroes if value is false.
/// Compiles to one instruction for register sized integers.
-pub fn boolMask(comptime MaskInt: type, value: bool) callconv(.Inline) MaskInt {
+pub inline fn boolMask(comptime MaskInt: type, value: bool) MaskInt {
if (@typeInfo(MaskInt) != .Int)
@compileError("boolMask requires an integer mask type.");