aboutsummaryrefslogtreecommitdiff
path: root/networking/tls_symmetric.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-01-23 01:15:13 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2017-01-23 01:15:13 +0100
commit9492da7e63deae898d7bf924be5790c7fab1a4fb (patch)
treec6f291a02592c198f4cf5711c0aef33a02739943 /networking/tls_symmetric.h
parent9a647c326a41e8160d53e6cb5470161a44c0e8cf (diff)
downloadbusybox-9492da7e63deae898d7bf924be5790c7fab1a4fb.tar.gz
tls: set TLS_DEBUG to 0; placate a gcc indentation warning
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tls_symmetric.h')
-rw-r--r--networking/tls_symmetric.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/networking/tls_symmetric.h b/networking/tls_symmetric.h
index 8488b437e..5e0e4b6d8 100644
--- a/networking/tls_symmetric.h
+++ b/networking/tls_symmetric.h
@@ -27,30 +27,32 @@
static ALWAYS_INLINE unsigned ROL(unsigned word, int i)
{
- if (__builtin_constant_p(i)) //box
+ if (__builtin_constant_p(i)) { //box
// Rotates by constant use fewer registers,
// and on many Intel CPUs rotates by %cl take 2 cycles, not 1.
- asm ("roll %2,%0" //box
+ asm ("roll %2,%0"
:"=r" (word)
:"0" (word),"i" (i));
- else //box
- asm ("roll %%cl,%0"
+ return word;
+ } //box
+ asm ("roll %%cl,%0"
:"=r" (word)
:"0" (word),"c" (i));
- return word;
+ return word;
}
static ALWAYS_INLINE unsigned ROR(unsigned word, int i)
{
- if (__builtin_constant_p(i)) //box
- asm ("rorl %2,%0" //box
+ if (__builtin_constant_p(i)) { //box
+ asm ("rorl %2,%0"
:"=r" (word)
:"0" (word),"i" (i));
- else //box
- asm ("rorl %%cl,%0"
+ return word;
+ } //box
+ asm ("rorl %%cl,%0"
:"=r" (word)
:"0" (word),"c" (i));
- return word;
+ return word;
}
/******************************************************************************/