ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/util.h
(Generate patch)

Comparing deliantra/server/include/util.h (file contents):
Revision 1.132 by root, Thu Dec 20 04:40:15 2018 UTC vs.
Revision 1.133 by root, Sat Oct 8 21:54:05 2022 UTC

278 for (uint32_t idxvar, mask_ = mask; \ 278 for (uint32_t idxvar, mask_ = mask; \
279 mask_ && ((idxvar = ecb_ctz32 (mask_)), mask_ &= ~(1 << idxvar), 1);) 279 mask_ && ((idxvar = ecb_ctz32 (mask_)), mask_ &= ~(1 << idxvar), 1);)
280 280
281extern ssize_t slice_alloc; // statistics 281extern ssize_t slice_alloc; // statistics
282 282
283void *salloc_ (int n); 283void *salloc_ (int n) noexcept;
284void *salloc_ (int n, void *src); 284void *salloc_ (int n, void *src) noexcept;
285 285
286// strictly the same as g_slice_alloc, but never returns 0 286// strictly the same as g_slice_alloc, but never returns 0
287template<typename T> 287template<typename T>
288inline T *salloc (int n = 1) { return (T *)salloc_ (n * sizeof (T)); } 288inline T *salloc (int n = 1) { return (T *)salloc_ (n * sizeof (T)); }
289 289

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines