lav/bits/u64.rs
1// Copyright © 2021-2026 Rouven Spreckels <rs@qu1x.dev>
2//
3// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of
4// the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
6use super::Bits;
7use core::simd::Simd;
8
9impl Bits for u64 {
10 type Simd<const N: usize> = Simd<Self, N>;
11
12 const MIN: Self = Self::MIN;
13 const MAX: Self = Self::MAX;
14
15 const ONE: Self = 1;
16
17 #[inline]
18 fn saturating_add(self, other: Self) -> Self {
19 self.saturating_add(other)
20 }
21 #[inline]
22 fn saturating_sub(self, other: Self) -> Self {
23 self.saturating_sub(other)
24 }
25}