lkml.org 
[lkml]   [2018]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 3/3] tty: Mark goldfish_tty_line_count as const
> Then why not just make it a #define?

With "const" the diff is smaller.

> No need to waste the memory of a variable, right?

I believe the compiler will produce the same binary for const and for
#define if optimization is enabled.

\
 
 \ /
  Last update: 2018-07-24 22:00    [W:0.041 / U:2.916 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site