On Mon, 3 Apr 2000, Brian Paul wrote:

> > I'm not sure what the rules are for using bzero, something may probably have
> > to be added to configure to support/not support this. (bzero is much faster
> > than memset on freebsd)
> > 
> > Please let me know if you have any comments or suggestions.
> 
> I'm not 100% sure bzero() is as common as memset().  So, I'm adding
> a BZERO() macro which evaluates to bzero() on FreeBSD but evaluates
> to memset() on everything else.
> 
> Thanks for the patches, I'll apply them soon to Mesa 3.2 and 3.3.
 
bzero exists under SGI IRIX and (at least) SuSE Linux.

However, the 'man' page for bzero under Linux says:

CONFORMING TO:
  4.3BSD. This function is deprecated -- use memset in new programs.

...so I guess we should stick with memset and assume that
it applies whatever optimisation there is for the zero case
internally.

Steve Baker                      (817)619-2657 (Vox/Vox-Mail)
L3Com/Link Simulation & Training (817)619-2466 (Fax)
Work: [EMAIL PROTECTED]            http://www.hti.com
Home: [EMAIL PROTECTED]       http://web2.airmail.net/sjbaker1



_______________________________________________
Mesa-bug maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-bug


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to