diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-04-20 09:10:50 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-04-20 09:10:50 +0000 |
commit | 1f666fa4597abc453c0923de99b27a473730ca0c (patch) | |
tree | 6a011218e6520a49c45efcf1c48e076a9eaa1d30 /target/linux/atheros/files/include/asm-mips | |
parent | c55299adb4ec95cb7321d8977490d6bdb19326e0 (diff) | |
download | master-31e0f0ae-1f666fa4597abc453c0923de99b27a473730ca0c.tar.gz master-31e0f0ae-1f666fa4597abc453c0923de99b27a473730ca0c.tar.bz2 master-31e0f0ae-1f666fa4597abc453c0923de99b27a473730ca0c.zip |
remove the clz function, use fls instead
SVN-Revision: 10878
Diffstat (limited to 'target/linux/atheros/files/include/asm-mips')
-rw-r--r-- | target/linux/atheros/files/include/asm-mips/mach-atheros/ar531x.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/target/linux/atheros/files/include/asm-mips/mach-atheros/ar531x.h b/target/linux/atheros/files/include/asm-mips/mach-atheros/ar531x.h index dccf541550..ba52a2b326 100644 --- a/target/linux/atheros/files/include/asm-mips/mach-atheros/ar531x.h +++ b/target/linux/atheros/files/include/asm-mips/mach-atheros/ar531x.h @@ -12,29 +12,6 @@ extern void (*board_time_init)(void); #endif /* - * C access to CLZ instruction - * (count leading zeroes). - */ -static inline int clz(unsigned long val) -{ - int ret; - - __asm__ volatile ( - ".set\tnoreorder\n\t" - ".set\tnoat\n\t" - ".set\tmips32\n\t" - "clz\t%0,%1\n\t" - ".set\tmips0\n\t" - ".set\tat\n\t" - ".set\treorder" - : "=r" (ret) - : "r" (val) - ); - - return ret; -} - -/* * Atheros CPUs before the AR2315 are using MIPS 4Kc core, later designs are * using MIPS 4KEc R2 core. This makes it easy to determine the board at runtime. */ |