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

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


#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 ;-)

David S. Miller

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