Stefan Hajnoczi
786a4ea82e
Convert (ffs(val) - 1) to ctz32(val)
...
This commit was generated mechanically by coccinelle from the following
semantic patch:
@@
expression val;
@@
- (ffs(val) - 1)
+ ctz32(val)
The call sites have been audited to ensure the ffs(0) - 1 == -1 case
never occurs (due to input validation, asserts, etc). Therefore we
don't need to worry about the fact that ctz32(0) == 32.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1427124571-28598-5-git-send-email-stefanha@redhat.com
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2015-04-28 15:36:08 +02:00
..
2015-02-06 17:24:21 +01:00
2015-03-10 08:15:33 +03:00
2015-01-13 11:47:56 +00:00
2015-03-10 14:02:21 +01:00
2014-10-20 13:41:27 +02:00
2015-03-10 14:02:22 +01:00
2014-08-20 11:51:28 +02:00
2014-08-15 15:07:15 +02:00
2014-11-03 11:41:49 +00:00
2014-11-03 11:41:47 +00:00
2015-02-06 17:24:21 +01:00
2014-09-12 15:43:06 +02:00
2015-04-09 10:31:45 +01:00
2014-12-12 16:57:55 +00:00
2015-02-06 17:24:21 +01:00
2015-01-23 18:17:06 +01:00
2015-03-18 12:07:01 +01:00
2015-03-18 12:07:01 +01:00
2015-03-18 12:05:38 +01:00
2014-12-10 10:31:19 +01:00
2014-10-20 13:41:27 +02:00
2014-11-03 09:48:41 +00:00
2015-03-19 11:11:55 +03:00
2015-02-06 17:24:22 +01:00
2015-03-10 14:02:21 +01:00
2015-04-28 15:36:08 +02:00
2015-04-28 15:36:08 +02:00
2015-04-28 15:36:08 +02:00
2015-04-08 10:29:20 +01:00
2015-02-06 17:24:21 +01:00
2014-08-20 11:51:28 +02:00
2011-08-20 23:01:08 -05:00
2014-10-20 13:41:27 +02:00
2012-03-12 15:14:06 +01:00
2014-10-20 13:41:27 +02:00
2015-04-28 15:36:08 +02:00
2015-02-06 17:24:21 +01:00
2014-10-20 13:41:27 +02:00
2015-03-10 14:02:22 +01:00
2014-12-12 16:57:55 +00:00
2015-03-19 12:30:56 +01:00
2015-02-16 15:07:19 +00:00
2015-04-28 15:36:08 +02:00
2015-04-28 15:36:08 +02:00
2014-11-03 09:48:42 +00:00
2014-10-03 10:30:33 +01:00
2014-11-03 11:41:49 +00:00
2015-03-10 14:02:24 +01:00
2014-08-15 15:07:14 +02:00
2014-08-20 11:51:28 +02:00
2015-01-23 12:41:32 -05:00
2014-12-12 15:42:22 +00:00
2015-02-16 15:07:17 +00:00
2015-03-16 12:10:30 -04:00
2015-02-26 14:49:31 +01:00
2014-10-20 13:41:27 +02:00
2015-03-16 17:07:25 +01:00