4 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
6 * SPDX-License-Identifier: GPL-2.0+
9 #ifndef __ASM_OPENRISC_FFS_H
10 #define __ASM_OPENRISC_FFS_H
12 static inline int ffs(int x)
16 __asm__ ("l.ff1 %0,%1"
23 #endif /* __ASM_OPENRISC_FFS_H */