HomeFreeBSD

libkern: tidy up memset

Description

libkern: tidy up memset

  1. Remove special-casing of 0 as it just results in an extra function call.

This is clearly pessimal.

  1. Drop the inline stuff. For the most part it is much better served with

__builtin_memset (coming later).

  1. Move the declaration to systm.h to match other funcs.

Archs are encouraged to implement the variant for their own platform so that
this implementation can be dropped.

Details

Provenance
mjgAuthored on
Parents
rS334532: Don't overflow a buffer if we receive an INIT or INIT-ACK chunk
Branches
Unknown
Tags
Unknown