Searched defs:assert (Results 1 - 25 of 41) 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/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.h74 assert(RecordSize < UINT32_MAX && "Record too big"); function
75 assert(RecordSize % 4 == 0 &&
93 assert(Result.first->second.getIndex() ==
/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/IPO/
H A DFunctionAttrs.cpp384 assert(UseIndex < CS.data_operands_size() && function
389 assert(CS.hasOperandBundles() && "Must be!");
400 assert(F->isVarArg() && "More params than args in non-varargs call");
519 assert(UseIndex < CS.data_operands_size() &&
525 assert(F->isVarArg() && "More params than args in non-varargs call");
666 assert((R == Attribute::ReadOnly || R == Attribute::ReadNone)
668 assert(A && "Argument must not be null.");
972 assert(F->getReturnType()->isPointerTy() &&
1558 // the cost of building up a reversible post-order list. We assert them here
1560 assert(!
[all...]
/freebsd-head/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp392 assert(BeginOffset < EndOffset && "Partitions must span some bytes!"); function
460 assert((P.SI != SE || !P.SplitTails.empty()) &&
479 assert(llvm::any_of(P.SplitTails,
484 assert(llvm::all_of(P.SplitTails,
495 assert(P.SplitTails.empty() && "Failed to clear the split slices!");
546 assert(P.BeginOffset == P.SI->beginOffset());
564 assert(P.SI->isSplittable() && "Forming a splittable partition!");
577 assert(!P.SJ->isSplittable());
584 assert(SE == RHS.SE &&
593 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/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/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/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
/freebsd-head/contrib/llvm-project/llvm/lib/MC/
H A DMCCodeView.cpp50 assert(FileNumber > 0);
166 assert(I != StringTable.end());
454 assert(Success && "failed to evaluate label difference as absolute");
456 assert(Result >= 0 && "negative label difference requested");
457 assert(Result < UINT_MAX && "label difference greater than 2GB"); function
591 assert(HaveOpenRange);
684 assert((NumGaps == 0 || Bias <= MaxDefRange) &&
689 assert(I < GapAndRangeSizes.size());
/freebsd-head/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorOps.cpp211 assert(LegalizedNodes.count(OldRoot) && "Root didn't get legalized?");
223 assert(Op->getNumValues() == Result->getNumValues() &&
234 assert(Results.size() == Op->getNumValues() &&
500 assert(!ResultVals.empty() && "No results for promotion?");
545 assert((Node->getNumValues() == Res->getNumValues()) &&
585 assert(Node->getNumValues() == 1 &&
626 assert(NVT.getVectorNumElements() == VT.getVectorNumElements() &&
665 assert(NVT.getVectorNumElements() == VT.getVectorNumElements() &&
690 // original operation was undefined anyway, so the assert is still correct.
732 assert(WideV
784 assert(BitOffset < WideBits && "Unexpected offset!"); function
[all...]
/freebsd-head/contrib/flex/src/
H A Dflexdef.h51 #include <assert.h>
53 #define assert(Pred) macro

Completed in 120 milliseconds

12