lkml.org 
[lkml]   [1996]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Problem: __inline__ functions in the kernel & cli()/sti() latency measurement
   Date: 	Tue, 11 Jun 1996 14:51:28 -0600
From: Warner Losh <imp@village.org>

Also, you can't reutrn a value from a macro like that. You can
from an inline function.

Untrue:

#define val_plus_two(val) do { ((val) + 2); } while(0)

It still does not annul the multi-evaluation reasoning for using
inline functions instead of macros though ;-)

Later,
David S. Miller
dm@sgi.com


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.044 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site