Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11158
b: refs/heads/master
c: 10f6567
h: refs/heads/master
v: v3
  • Loading branch information
Pete Popov authored and Ralf Baechle committed Oct 29, 2005
1 parent 614543d commit 0aabcbe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7a0fc58cd9b004672b38537de276f8f188d5e84a
refs/heads/master: 10f6567e63a0ba9b473da9ea60452ffdb07ced02
23 changes: 0 additions & 23 deletions trunk/include/asm-mips/mach-au1x00/au1000.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,29 +90,6 @@ static inline u32 au_readl(unsigned long reg)
return (*(volatile u32 *)reg);
}

/* These next three functions should be a generic part of the MIPS
* kernel (with the 'au_' removed from the name) and selected for
* processors that support the instructions.
* Taken from PPC tree. -- Dan
*/
/* Return the bit position of the most significant 1 bit in a word */
static __inline__ int __ilog2(unsigned int x)
{
int lz;

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" (lz)
: "r" (x));

return 31 - lz;
}

static __inline__ int au_ffz(unsigned int x)
{
Expand Down

0 comments on commit 0aabcbe

Please sign in to comment.