Thread (10 messages) 10 messages, 5 authors, 2008-03-04

Re: V4L2: __ucmpdi2 undefined on ppc

From: Segher Boessenkool <hidden>
Date: 2008-03-04 20:33:10

quoted
Every occurrence of r7 here is wrong (and some of the r6).
Can you elucidate?
Sure!  It should read either "7" or "cr7".
quoted
  Is there any reason to do this in assembler code at all?
Is there any particular reason not to?
1) If written in assembler, it needs to be written for every 
architecture
separately, and sometimes even for every architecture variant (32 vs. 64
bit is only the tip of the iceberg).

2) As shown here as well as in the recent strncmp() patch, it is a lot 
harder
to write correct assembler code than it is to write correct C code(*), 
and
the C code isn't less efficient either.


Segher

(*) Well, the generic C strncmp() code in the kernel is broken too, bad
example perhaps :-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help