Changeset ccbc70d in rtems-libbsd


Ignore:
Timestamp:
Sep 24, 2014, 2:28:25 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 18cc38e73ea355d7803db8ee1d44052a3857db6f, freebsd-9.3, 7606ec29778f1fabf70f3fc10edca02155d02c8c
Children:
6604dc8
Parents:
8176af1
Message:

BSD_ASSERT(): Optimize

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/include/machine/rtems-bsd-kernel-space.h

    r8176af1 rccbc70d  
    6666# define BSD_ASSERT(expr) ((void) 0)
    6767#else
    68 # define BSD_ASSERT(expr) ((expr) ? (void) 0 : rtems_bsd_assert_func(__FILE__, __LINE__, __func__, #expr))
     68# define BSD_ASSERT(expr) (__predict_true(expr) ? (void) 0 : rtems_bsd_assert_func(__FILE__, __LINE__, __func__, #expr))
    6969#endif
    7070
Note: See TracChangeset for help on using the changeset viewer.