/* * Copyright (C) 2020-2022 The opuntiaOS Project Authors. * + Contributed by Nikita Melekhin * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef _KERNEL_LIBKERN_PLATFORM_H #define _KERNEL_LIBKERN_PLATFORM_H #include ALWAYS_INLINE int ctz32(unsigned int val) { return __builtin_ctz(val); } #endif // _KERNEL_LIBKERN_PLATFORM_H