diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-03 16:06:26 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-03 16:06:26 -0500 |
| commit | 39a58bc129fd9461d54b837bc1650c4c650aa333 (patch) | |
| tree | d3a7e9b3be33856cc8343f6cb273f9a14c28effd /stdlib | |
| parent | 3743913ce2c5bc37f899d437c09b60cbb3bc6dea (diff) | |
Clean up behavior and syntax for unsigned bit shifts (<<<, >>>)
Diffstat (limited to 'stdlib')
| -rw-r--r-- | stdlib/integers.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); \ } |
