From 39a58bc129fd9461d54b837bc1650c4c650aa333 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 3 Nov 2024 16:06:26 -0500 Subject: Clean up behavior and syntax for unsigned bit shifts (<<<, >>>) --- stdlib/integers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdlib') diff --git a/stdlib/integers.h b/stdlib/integers.h index ea286202..e7b5b0e1 100644 --- a/stdlib/integers.h +++ b/stdlib/integers.h @@ -67,10 +67,10 @@ MACROLIKE PUREFUNC c_type type_name ## $wrapping_minus(c_type x, c_type y) { \ return (c_type)((u##c_type)x + (u##c_type)y); \ } \ - MACROLIKE PUREFUNC c_type type_name ## $unsigned_left_shift(c_type x, c_type y) { \ + MACROLIKE PUREFUNC c_type type_name ## $unsigned_left_shifted(c_type x, c_type y) { \ return (c_type)((u##c_type)x << y); \ } \ - MACROLIKE PUREFUNC c_type type_name ## $unsigned_right_shift(c_type x, c_type y) { \ + MACROLIKE PUREFUNC c_type type_name ## $unsigned_right_shifted(c_type x, c_type y) { \ return (c_type)((u##c_type)x >> y); \ } -- cgit v1.2.3