/* * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. * * SPDX-License-Identifier: BSD-3-Clause */ #include #include #include "pico/stdlib.h" #include "pico/bit_ops.h" #include void test_builtin_bitops() { int32_t x = 0; for (uint32_t i = 0; i < 10000; i++) { uint32_t vals32[] = { i, 1u << (i & 31u), i * 12355821u, }; uint64_t vals64[] = { i, 1ull << (i & 63u), i * 12345678123125ull, }; for(int j=0; j