cvs commit: src/sys/sys cdefs.h

From: Maxime Henrion <>
Date: Tue, 30 Sep 2003 13:45:14 -0700 (PDT)
mux         2003/09/30 13:45:14 PDT

  FreeBSD src repository

  Modified files:
    sys/sys              cdefs.h 
  Introduce new __predict_false(exp) and __predict_true(exp) keywords.
  Their purpose is to give explicit hints to the compiler to judge
  the likelyhood of a test to succeed or fail.  Not all architectures
  have support for such optimizations, but for those who do, it can
  give a nice performance improvement in hot loops.
  Obviously, this should be used very rarely in very specific code.
  Reviewed by:    peter
  Obtained from:  OpenBSD
  Revision  Changes    Path
  1.77      +36 -0     src/sys/sys/cdefs.h
Received on Tue Sep 30 2003 - 13:45:16 UTC