/* Copyright 2022 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "math.h" #include "math_util.h" #include #include ZTEST_USER(math, test_bitmask_uint64) { zassert_equal(bitmask_uint64(-1), 0); zassert_equal(bitmask_uint64(64), 0); zassert_equal(bitmask_uint64(1), UINT64_C(1) << 1); zassert_equal(bitmask_uint64(15), UINT64_C(1) << 15); zassert_equal(bitmask_uint64(35), UINT64_C(1) << 35); zassert_equal(bitmask_uint64(60), UINT64_C(1) << 60); }