Searched defs:assert (Results 1 - 25 of 43) sorted by relevance

12

/freebsd-head/include/
H A Dassert.h36 * @(#)assert.h 8.2 (Berkeley) 1/21/94
43 * Unlike other ANSI header files, <assert.h> may usefully be included
47 #undef assert macro
51 #define assert(e) ((void)0) macro
54 #define _assert(e) assert(e)
56 #define assert(e) ((e) ? (void)0 : __assert(__func__, __FILE__, \ macro
/freebsd-head/contrib/jemalloc/include/jemalloc/internal/
H A Dassert.h5 * Define a custom assert() in order to reduce the chances of deadlock during
8 #ifndef assert
9 #define assert(e) do { \ macro
49 /* Use to assert a particular configuration, e.g., cassert(config_debug). */
H A Dsz.h96 assert(ret == sz_pind2sz_compute(pind));
102 assert(pind < SC_NPSIZES + 1); function
156 assert(size <= SC_LOOKUP_MAXCLASS);
159 assert(ret == sz_size2index_compute(size));
200 assert(ret == sz_index2size_compute(index));
206 assert(index < SC_NSIZES); function
242 assert(ret == sz_s2u_compute(size));
266 assert(alignment != 0 && ((alignment - 1) & alignment) == 0);
/freebsd-head/cddl/compat/opensolaris/include/
H A Dassert.h29 #undef assert macro
33 #define assert(e) ((void)0) macro
36 #define _assert(e) assert(e)
38 #define assert(e) ((e) ? (void)0 : __assert(#e, __FILE__, __LINE__)) macro
/freebsd-head/libexec/rtld-elf/
H A Ddebug.h57 #define assert(cond) ((cond) ? (void) 0 : \ macro
58 (msg(_MYNAME ": assert failed: " __FILE__ ":" \
/freebsd-head/sys/contrib/zstd/lib/common/
H A Ddebug.h18 * They regroup assert(), DEBUGLOG() and RAWLOG() for run-time,
23 * Level 1 enables assert() only.
40 /* static assert is triggered at compile time, leaving no runtime artefact.
41 * static assert only works with compile-time constants.
65 * 1 : enables assert() only, no display
79 # include <assert.h>
81 # ifndef assert /* assert may be already defined, due to prior #include <assert.h> */
82 # define assert(conditio macro
[all...]
/freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/lua_core/
H A Dtst.lib_coroutine.lua29 assert(type(main) == "thread" and ismain)
30 assert(not coroutine.resume(main))
36 assert(#t1 == #t2)
39 assert(t2[i] == v)
46 assert(x == f and y == false)
49 assert(coroutine.resume(f) == false)
50 assert(coroutine.status(f) == "running")
59 assert(type(f) == "thread" and coroutine.status(f) == "suspended")
60 assert(string.find(tostring(f), "thread"))
63 assert(
[all...]
/freebsd-head/sys/mips/mediatek/
H A Dfdt_reset.c48 * Be liberal about errors for now: warn about a failure to (de)assert but keep
53 assert_deassert_all(device_t consumer, boolean_t assert) argument
64 if (!assert && ncells < 2) {
74 if (!assert)
81 if (assert)
86 if (!assert)
/freebsd-head/contrib/capsicum-test/
H A Dcapsicum-test-main.cc94 assert(program_name);
99 assert(old_path);
101 assert(asprintf(&new_path, "%s:%s", capsicum_test_bindir.c_str(),
103 assert(setenv("PATH", new_path, 1) == 0);
112 assert(ii < argc); function
116 assert(S_ISDIR(info.st_mode));
/freebsd-head/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DFunctionSummary.h69 assert(I != Map.end());
99 assert(ID < TotalIDs); function
/freebsd-head/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DGlobalTypeTableBuilder.h75 assert(RecordSize < UINT32_MAX && "Record too big"); function
76 assert(RecordSize % 4 == 0 &&
94 assert(Result.first->second.getIndex() ==
/freebsd-head/sys/contrib/openzfs/lib/libspl/include/
H A Dassert.h27 #include_next <assert.h>
110 #ifdef assert
111 #undef assert macro
114 /* Compile time assert */
129 #define assert(x) ((void)0) macro
139 #define assert VERIFY macro
/freebsd-head/sys/dev/isci/
H A Denvironment.h100 #define assert(cond) macro
/freebsd-head/sys/rpc/
H A Drpc_prot.c64 #define assert(exp) KASSERT(exp, ("bad arguments")) macro
81 assert(xdrs != NULL);
82 assert(ap != NULL);
100 assert(xdrs != NULL);
101 assert(ar != NULL);
142 assert(xdrs != NULL);
143 assert(rr != NULL);
162 assert(0);
181 assert(xdrs != NULL);
182 assert(rms
[all...]
/freebsd-head/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DCodeViewRecordIO.cpp27 assert(!Limits.empty() && "Not in a record!");
29 // We would like to assert that we actually read / wrote all the bytes that we
61 assert(!Limits.empty() && "Not in a record!");
74 assert(Min.hasValue() && "Every field must have a maximum length!");
86 assert(!isWriting() && "Cannot skip padding while writing!");
276 assert(Value < 0 && "Encoded integer is not signed!"); function
325 assert(Value < 0 && "Encoded integer is not signed!"); function
/freebsd-head/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp381 assert(BeginOffset < EndOffset && "Partitions must span some bytes!"); function
449 assert((P.SI != SE || !P.SplitTails.empty()) &&
468 assert(llvm::any_of(P.SplitTails,
473 assert(llvm::all_of(P.SplitTails,
484 assert(P.SplitTails.empty() && "Failed to clear the split slices!");
535 assert(P.BeginOffset == P.SI->beginOffset());
553 assert(P.SI->isSplittable() && "Forming a splittable partition!");
566 assert(!P.SJ->isSplittable());
573 assert(SE == RHS.SE &&
582 assert(
[all...]
/freebsd-head/contrib/libarchive/test_utils/
H A Dtest_common.h167 /* An implementation of the standard assert() macro */
168 #define assert(e) assertion_assert(__FILE__, __LINE__, (e), #e, NULL) macro
/freebsd-head/sys/kern/
H A Dsubr_capability.c47 #include <assert.h>
55 #define assert(exp) KASSERT((exp), ("%s:%u", __func__, __LINE__)) macro
170 assert(idx >= 0 && idx < sizeof(bit2idx) / sizeof(bit2idx[0]));
180 assert(CAPVER(rights) == CAP_RIGHTS_VERSION_00);
183 assert(n >= CAPARSIZE_MIN && n <= CAPARSIZE_MAX);
189 assert(CAPRVER(right) == 0);
191 assert(i >= 0);
192 assert(i < n);
193 assert(CAPIDXBIT(rights->cr_rights[i]) == CAPIDXBIT(right));
195 assert(CAPIDXBI
[all...]
/freebsd-head/contrib/jemalloc/src/
H A Dmalloc_io.c8 #ifdef assert
9 # undef assert macro
25 #define assert(e) do { \ macro
278 assert(base >= 2 && base <= 36);
443 assert(!alt_form);
447 assert(!left_justify);
451 assert(!plus_space);
455 assert(!plus_plus);
478 assert(uwidth != UINTMAX_MAX || get_errno() !=
502 assert(upre
685 #undef assert macro
[all...]
/freebsd-head/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp370 assert(RemainingBytes < 16); function
/freebsd-head/contrib/ntp/ntpd/
H A Drefclock_jupiter.c116 u_int assert; /* pps edge to use */ member in struct:instance
216 up->assert = 1;
220 * the assert edge and do not enable the kernel hardpps.
382 if (!up->assert)
389 up->assert);
511 up->assert = !(pp->sloppyclockflag & CLK_FLAG3);
/freebsd-head/contrib/llvm-project/lldb/source/Target/
H A DRegisterContext.cpp284 assert(kind < kNumRegisterKinds); function
/freebsd-head/contrib/llvm-project/llvm/include/llvm/Support/
H A DScaledNumber.h203 assert(LocalFloor >= 1);
308 assert(ShiftL < getWidth<DigitsT>() && "can't shift more than width"); function
322 assert(LScale == RScale && "scales should match");
338 assert(LScale < INT16_MAX && "scale too large");
339 assert(RScale < INT16_MAX && "scale too large");
701 assert(Shift >= ScaledNumbers::MinScale && "Shift should be close to 0");
702 assert(Shift <= ScaledNumbers::MaxScale - 64 &&
789 assert(size_t(Scale) < sizeof(IntT) * 8);
793 assert(size_t(-Scale) < sizeof(IntT) * 8);
836 assert(Shif
[all...]
/freebsd-head/contrib/binutils/gas/
H A Das.h140 #define assert(P) \ macro
268 #define know(p) assert(p) /* Verify our assumptions! */
/freebsd-head/tests/sys/cddl/zfs/include/
H A Dlibtest.kshlib633 function assert function

Completed in 162 milliseconds

12