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-03-08 11:51:46 +01:00 
		 
	
		
			
			
			
			
			
			2015-04-13 11:37:10 +01:00 
		 
	
		
			
			
			
			
			
			2013-06-07 14:55:33 +02:00 
		 
	
		
			
			
			
			
			
			2015-03-10 14:02:22 +01:00 
		 
	
		
			
			
			
			
			
			2015-03-11 13:21:05 +00:00 
		 
	
		
			
			
			
			
			
			2013-12-24 18:02:18 +01:00 
		 
	
		
			
			
			
			
			
			2014-02-03 14:04:00 +00:00 
		 
	
		
			
			
			
			
			
			2014-05-07 19:14:46 +03:00 
		 
	
		
			
			
			
			
			
			2015-04-02 15:57:27 +02:00 
		 
	
		
			
			
			
			
			
			2014-05-26 08:42:43 +02:00 
		 
	
		
			
			
			
			
			
			2014-02-26 17:20:00 +00:00 
		 
	
		
			
			
			
			
			
			2014-02-14 21:11:53 +01:00 
		 
	
		
			
			
			
			
			
			2015-03-01 12:33:22 +01:00 
		 
	
		
			
			
			
			
			
			2013-04-08 18:13:10 +02:00 
		 
	
		
			
			
			
			
			
			2015-02-18 11:58:50 +01:00 
		 
	
		
			
			
			
			
			
			2013-04-08 18:13:10 +02:00 
		 
	
		
			
			
			
			
			
			2015-01-27 14:46:18 +02:00 
		 
	
		
			
			
			
			
			
			2014-06-18 16:58:10 +02:00 
		 
	
		
			
			
			
			
			
			2015-03-11 13:21:05 +00:00 
		 
	
		
			
			
			
			
			
			2014-04-17 21:34:06 +01:00 
		 
	
		
			
			
			
			
			
			2014-12-22 23:39:18 +00:00 
		 
	
		
			
			
			
			
			
			2015-04-28 15:36:08 +02:00 
		 
	
		
			
			
			
			
			
			2015-03-09 15:00:08 +01:00 
		 
	
		
			
			
			
			
			
			2015-03-09 15:00:08 +01:00 
		 
	
		
			
			
			
			
			
			2015-01-12 10:14:04 +01:00 
		 
	
		
			
			
			
			
			
			2014-11-12 10:27:03 +01:00 
		 
	
		
			
			
			
			
			
			2013-04-13 13:51:45 +02:00 
		 
	
		
			
			
			
			
			
			2015-03-02 13:20:43 +00:00 
		 
	
		
			
			
			
			
			
			2015-03-11 13:21:05 +00:00 
		 
	
		
			
			
			
			
			
			2014-09-01 14:49:20 +01:00 
		 
	
		
			
			
			
			
			
			2013-04-08 18:13:10 +02:00 
		 
	
		
			
			
			
			
			
			2014-06-02 16:28:59 +02:00 
		 
	
		
			
			
			
			
			
			2015-03-02 11:38:55 -07:00 
		 
	
		
			
			
			
			
			
			2015-04-08 10:39:18 +01:00 
		 
	
		
			
			
			
			
			
			2015-03-10 08:15:33 +03:00 
		 
	
		
			
			
			
			
			
			2015-03-25 22:49:47 +01:00 
		 
	
		
			
			
			
			
			
			2013-09-10 11:14:41 +02:00 
		 
	
		
			
			
			
			
			
			2014-11-02 12:03:03 +02:00 
		 
	
		
			
			
			
			
			
			2013-04-15 15:16:01 +02:00 
		 
	
		
			
			
			
			
			
			2015-03-19 11:37:40 +03:00 
		 
	
		
			
			
			
			
			
			2013-04-08 18:13:10 +02:00 
		 
	
		
			
			
			
			
			
			2014-04-07 15:36:07 +02:00 
		 
	
		
			
			
			
			
			
			2015-01-15 10:44:13 +03:00 
		 
	
		
			
			
			
			
			
			2014-12-22 14:39:20 +08:00 
		 
	
		
			
			
			
			
			
			2014-02-20 17:28:08 +00:00 
		 
	
		
			
			
			
			
			
			2014-10-23 16:41:25 +02:00 
		 
	
		
			
			
			
			
			
			2015-02-18 11:58:50 +01:00 
		 
	
		
			
			
			
			
			
			2014-08-25 13:25:16 +02:00 
		 
	
		
			
			
			
			
			
			2014-10-24 12:19:11 +01:00 
		 
	
		
			
			
			
			
			
			2014-11-04 23:26:14 +01:00 
		 
	
		
			
			
			
			
			
			2014-02-04 15:51:45 +01:00 
		 
	
		
			
			
			
			
			
			2015-02-11 21:47:51 +01:00 
		 
	
		
			
			
			
			
			
			2014-02-14 21:12:04 +01:00 
		 
	
		
			
			
			
			
			
			2015-03-10 18:03:02 +00:00 
		 
	
		
			
			
			
			
			
			2013-04-08 18:13:10 +02:00 
		 
	
		
			
			
			
			
			
			2014-10-20 14:02:25 +02:00 
		 
	
		
			
			
			
			
			
			2014-05-28 17:36:21 +02:00 
		 
	
		
			
			
			
			
			
			2013-05-01 20:55:21 +04:00 
		 
	
		
			
			
			
			
			
			2014-11-11 14:50:10 +00:00 
		 
	
		
			
			
			
			
			
			2015-03-17 14:11:42 +01:00