This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Refactor malloc (x * sizeof (t) to XNMALLOC (x, t).


OndÅej BÃlka wrote:
> A macro saves cast in more cases than adding cast to change type.

I don't see how that would be, as no casts are necessary with the function.

> Second reason that I picked macro was because I assumed that gcc does
> not inline functions with inline assembly. A gcc does it which changes
> situation a bit.

GCC normally inlines such functions these days, so the situation is
indeed different than it was way back when.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]