Re: number of elements or bytes for kfifo_in etc

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stefani Seibold
Date: Wednesday, August 18, 2010 - 11:52 pm

Am Donnerstag, den 19.08.2010, 09:15 +0800 schrieb Huang Ying:

esize isn't constant, especially from the point of view inside
__kfifo_in and so on. The is ony good reason not to pass the size of the
element using sizeof(*fifo->type) as a parameter, it will generate more
code. Storing the size of the element in the kfifo structure is the
better decision.

But if you found a better way and can prove it under any circumstance
with a list of measurement results u will get an ack!

- Stefani


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
number of elements or bytes for kfifo_in etc, Huang Ying, (Tue Aug 17, 10:29 pm)
Re: number of elements or bytes for kfifo_in etc, Stefani Seibold, (Wed Aug 18, 9:35 am)
Re: number of elements or bytes for kfifo_in etc, Huang Ying, (Wed Aug 18, 5:32 pm)
Re: number of elements or bytes for kfifo_in etc, Huang Ying, (Wed Aug 18, 6:15 pm)
Re: number of elements or bytes for kfifo_in etc, Stefani Seibold, (Wed Aug 18, 11:52 pm)