1/*
2 * Copyright (C) 2020-2022 The opuntiaOS Project Authors.
3 * + Contributed by Nikita Melekhin <nimelehin@gmail.com>
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9#ifndef _KERNEL_LIBKERN_PLATFORM_H
10#define _KERNEL_LIBKERN_PLATFORM_H
11
12#include <libkern/c_attrs.h>
13
14ALWAYS_INLINE int ctz32(unsigned int val)
15{
16 return __builtin_ctz(val);
17}
18
19#endif // _KERNEL_LIBKERN_PLATFORM_H