lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1421757055-8234-2-git-send-email-martink@posteo.de>
Date:	Tue, 20 Jan 2015 13:30:54 +0100
From:	Martin Kepplinger <martink@...teo.de>
To:	torvalds@...ux-foundation.org, jsrhbz@...argh.force9.co.uk,
	christoph.muellner@...obroma-systems.com, linux@...ck-us.net,
	linux@...musvillemoes.dk, paulmck@...ux.vnet.ibm.com,
	tglx@...utronix.de, mingo@...nel.org, akpm@...ux-foundation.org,
	hpa@...or.com, maxime.coquelin@...com,
	linux-kernel@...r.kernel.org, peterz@...radead.org, tytso@....edu
Cc:	linux-tip-commits@...r.kernel.org,
	Martin Kepplinger <martink@...teo.de>
Subject: [PATCH 1/2] bitops.h: improve documentation for sign_extend32()

Signed-off-by: Martin Kepplinger <martink@...teo.de>
---
 include/linux/bitops.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/bitops.h b/include/linux/bitops.h
index 5d858e0..336f22b 100644
--- a/include/linux/bitops.h
+++ b/include/linux/bitops.h
@@ -164,6 +164,8 @@ static inline __u8 ror8(__u8 word, unsigned int shift)
  * sign_extend32 - sign extend a 32-bit value using specified bit as sign-bit
  * @value: value to sign extend
  * @index: 0 based bit index (0<=index<32) to sign bit
+ *
+ * Safe to use for sign extending to 8 and 16 bit data types aswell.
  */
 static inline __s32 sign_extend32(__u32 value, int index)
 {
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ