fix white space issues
Change-Id: I8def24a7928121def14d6ff3f8e1f05c6fb1bad6 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
abeaeacab0
commit
6b9577d2f5
1 changed files with 8 additions and 8 deletions
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
This module implements the ffsMsb() and ffsLsb() functions for the IA-32
|
This module implements the ffsMsb() and ffsLsb() functions for the IA-32
|
||||||
architecture.
|
architecture.
|
||||||
|
|
||||||
INTERNAL
|
INTERNAL
|
||||||
|
@ -53,7 +53,7 @@ are defined in arch.h.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @brief Find first set bit searching from the LSB
|
* @brief Find first set bit searching from the LSB
|
||||||
*
|
*
|
||||||
* This routine finds the first bit set in the passed argument and
|
* This routine finds the first bit set in the passed argument and
|
||||||
* returns the index of that bit. Bits are numbered starting
|
* returns the index of that bit. Bits are numbered starting
|
||||||
|
@ -76,7 +76,7 @@ SECTION_FUNC(TEXT, find_first_set)
|
||||||
|
|
||||||
movl $0xffffffff, %ecx /* preload for 0 return value */
|
movl $0xffffffff, %ecx /* preload for 0 return value */
|
||||||
bsfl 0x4(%esp), %eax /* bit scan "forward" */
|
bsfl 0x4(%esp), %eax /* bit scan "forward" */
|
||||||
cmovz %ecx, %eax /* if operand == 0 then %ecx -> eax */
|
cmovz %ecx, %eax /* if operand == 0 then %ecx -> eax */
|
||||||
addl $1, %eax
|
addl $1, %eax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -86,17 +86,17 @@ SECTION_FUNC(TEXT, find_first_set)
|
||||||
jnz ffsLsb_argNotZero
|
jnz ffsLsb_argNotZero
|
||||||
xorl %eax, %eax /* return 0 when arg=0 */
|
xorl %eax, %eax /* return 0 when arg=0 */
|
||||||
ret
|
ret
|
||||||
|
|
||||||
BRANCH_LABEL(ffsLsb_argNotZero) /* this label serves find_first_set() & find_last_set() */
|
BRANCH_LABEL(ffsLsb_argNotZero) /* this label serves find_first_set() & find_last_set() */
|
||||||
addl $1, %eax
|
addl $1, %eax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
#endif /* CONFIG_CMOV */
|
#endif /* CONFIG_CMOV */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @brief Find first set bit searching from the MSB
|
* @brief Find first set bit searching from the MSB
|
||||||
*
|
*
|
||||||
* This routine finds the first bit set in the passed argument and
|
* This routine finds the first bit set in the passed argument and
|
||||||
* returns the index of that bit. Bits are numbered starting
|
* returns the index of that bit. Bits are numbered starting
|
||||||
|
@ -119,7 +119,7 @@ SECTION_FUNC(TEXT, find_last_set)
|
||||||
|
|
||||||
movl $0xffffffff, %ecx /* preload for 0 return value */
|
movl $0xffffffff, %ecx /* preload for 0 return value */
|
||||||
bsrl 0x4(%esp), %eax /* bit scan "reverse" */
|
bsrl 0x4(%esp), %eax /* bit scan "reverse" */
|
||||||
cmovz %ecx, %eax /* if operand == 0 then %ecx -> eax */
|
cmovz %ecx, %eax /* if operand == 0 then %ecx -> eax */
|
||||||
addl $1, %eax
|
addl $1, %eax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -129,6 +129,6 @@ SECTION_FUNC(TEXT, find_last_set)
|
||||||
jnz ffsLsb_argNotZero
|
jnz ffsLsb_argNotZero
|
||||||
xorl %eax, %eax /* return 0 when arg=0 */
|
xorl %eax, %eax /* return 0 when arg=0 */
|
||||||
ret
|
ret
|
||||||
|
|
||||||
#endif /* CONFIG_CMOV */
|
#endif /* CONFIG_CMOV */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue