This is the mail archive of the libc-alpha@sources.redhat.com 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]

Re: Should we optimize memset to bzero?


On Fri, Nov 02, 2001 at 08:51:39AM -0800, H . J . Lu wrote:
> Do we have any ideas when gcc will inline __builtin_memset(s,0,n)? I don't
> believe gcc will inline it if `n' is not a small constant. Can we guess what
> that small constant is?

Depends on exactly what processor you're compiling for.
Look at gcc/expr.c (clear_storage) for all the glory details.
You really don't want to have all this knowledge in glibc headers,
especially when it is changing all the time.

	Jakub


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