Jan Beulich cb8095bba6 x86: atomic64 assembly improvements
In the "xchg" implementation, %ebx and %ecx don't need to be copied
into %eax and %edx respectively (this is only necessary when desiring
to only read the stored value).

In the "add_unless" implementation, swapping the use of %ecx and %esi
for passing arguments allows %esi to become an input only (i.e.
permitting the register to be re-used to address the same object
without reload).

In "{add,sub}_return", doing the initial read64 through the passed in
%ecx decreases a register dependency.

In "inc_not_zero", a branch can be eliminated by or-ing together the
two halves of the current (64-bit) value, and code size can be further
reduced by adjusting the arithmetic slightly.

v2: Undo the folding of "xchg" and "set".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Link: http://lkml.kernel.org/r/4F19A2BC020000780006E0DC@nat28.tlf.novell.com
Cc: Luca Barbieri <luca@luca-barbieri.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-01-20 17:29:49 -08:00
..
2011-12-05 17:17:24 +01:00
2009-01-29 14:16:51 +01:00
2011-08-29 13:44:12 -07:00
2011-08-29 13:44:12 -07:00
2011-01-13 08:03:25 -08:00
2009-12-05 09:10:12 -08:00
2011-03-18 10:39:30 +01:00
2011-02-14 12:08:28 +01:00
2011-09-27 18:08:04 +02:00
2011-05-02 17:24:48 +02:00
2010-02-16 21:22:26 -08:00
2011-05-16 14:55:57 -04:00
2011-04-18 09:26:48 -07:00
2010-10-26 16:52:08 -07:00
2011-01-07 10:03:50 -05:00
2009-03-27 14:43:57 -04:00
2009-08-27 00:35:56 +02:00
2011-11-11 10:22:55 +01:00
2010-10-26 16:52:08 -07:00
2009-01-21 17:26:06 +09:00
2011-02-23 22:27:52 +01:00
2011-07-26 16:49:43 -07:00
2009-06-13 15:37:30 +02:00
2011-12-27 11:24:35 +02:00
2011-07-22 14:39:50 +09:30
2011-05-24 14:33:35 +02:00
2010-06-09 11:12:36 +02:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2010-05-07 17:13:04 -07:00
2011-09-25 19:53:00 +03:00
2011-12-05 14:28:37 +01:00
2010-06-29 12:12:59 +02:00
2010-11-01 15:38:34 -04:00
2010-10-26 16:52:08 -07:00
2011-01-13 17:32:44 -08:00
2011-06-05 21:30:33 +02:00
2011-01-13 17:32:44 -08:00
2009-02-02 23:27:09 +05:30
2011-03-15 15:34:15 -07:00
2011-07-26 16:49:47 -07:00
2010-02-12 09:42:39 -08:00
2011-03-18 10:39:30 +01:00
2011-08-29 13:44:12 -07:00
2011-12-05 12:00:16 +01:00
2009-06-15 12:40:02 +02:00
2009-01-31 00:19:32 +05:30
2011-03-23 19:47:18 -07:00
2011-05-20 12:50:29 -07:00
2011-05-20 12:50:29 -07:00
2011-06-05 21:30:32 +02:00
2009-06-15 12:40:02 +02:00