.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Port on Texas Instruments TMS320C6x architecture |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2004, 2009, 2010 Texas Instruments Incorporated |
---|
5 | 6 | * Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com) |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | 7 | */ |
---|
11 | 8 | #ifndef _ASM_C6X_BITOPS_H |
---|
12 | 9 | #define _ASM_C6X_BITOPS_H |
---|
.. | .. |
---|
54 | 51 | * This is defined the same way as ffs. |
---|
55 | 52 | * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32. |
---|
56 | 53 | */ |
---|
57 | | -static inline int fls(int x) |
---|
| 54 | +static inline int fls(unsigned int x) |
---|
58 | 55 | { |
---|
59 | 56 | if (!x) |
---|
60 | 57 | return 0; |
---|