1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
8 #ifndef __ASM_OPENRISC_FLS_H
9 #define __ASM_OPENRISC_FLS_H
12 #ifdef CONFIG_OPENRISC_HAVE_INST_FL1
14 static inline int fls(unsigned int x
)
18 __asm__ ("l.fl1 %0,%1"
26 #include <asm-generic/bitops/fls.h>
29 #endif /* __ASM_OPENRISC_FLS_H */