Home | History | Annotate | Download | only in include

Lines Matching refs:_B

109     typeof(__b) __sio(var)(_b) = (__b); \
112 __sio(var)(_b)))) { \
116 __sio(var)(_b)); \
120 __sio(var)(_b)); \
125 #define safe_add3(_ptr, _A, _B, _C) \
127 typeof(_B) __sio(var)(b) = (_B); \
133 #define safe_add4(_ptr, _A, _B, _C, _D) \
135 typeof(_B) __sio(var)(b) = (_B); \
143 #define safe_add5(_ptr, _A, _B, _C, _D, _E) \
145 typeof(_B) __sio(var)(b) = (_B); \
158 typeof(__b) __sio(var)(_b) = (__b); \
161 __sio(var)(_b)))) { \
165 __sio(var)(_b)); \
169 __sio(var)(_b)); \
175 #define safe_sub3(_ptr, _A, _B, _C) \
177 typeof(_B) __sio(var)(b) = (_B); \
183 #define safe_sub4(_ptr, _A, _B, _C, _D) \
185 typeof(_B) __sio(var)(b) = (_B); \
193 #define safe_sub5(_ptr, _A, _B, _C, _D, _E) \
195 typeof(_B) __sio(var)(b) = (_B); \
210 typeof(__b) __sio(var)(_b) = (__b); \
213 __sio(var)(_b)))) { \
217 __sio(var)(_b)); \
221 __sio(var)(_b)); \
226 #define safe_mul3(_ptr, _A, _B, _C) \
228 typeof(_B) __sio(var)(b) = (_B); \
234 #define safe_mul4(_ptr, _A, _B, _C, _D) \
236 typeof(_B) __sio(var)(b) = (_B); \
244 #define safe_mul5(_ptr, _A, _B, _C, _D, _E) \
246 typeof(_B) __sio(var)(b) = (_B); \
259 typeof(__b) __sio(var)(_b) = (__b); \
262 __sio(var)(_b)))) { \
266 __sio(var)(_b)); \
270 __sio(var)(_b)); \
275 #define safe_div3(_ptr, _A, _B, _C) \
277 typeof(_B) __sio(var)(b) = (_B); \
283 #define safe_div4(_ptr, _A, _B, _C, _D) \
285 typeof(_B) __sio(var)(b) = (_B); \
293 #define safe_div5(_ptr, _A, _B, _C, _D, _E) \
295 typeof(_B) __sio(var)(b) = (_B); \
308 typeof(__b) __sio(var)(_b) = (__b); \
311 __sio(var)(_b)))) { \
315 __sio(var)(_b)); \
319 __sio(var)(_b)); \
324 #define safe_mod3(_ptr, _A, _B, _C) \
326 typeof(_B) __sio(var)(b) = (_B); \
332 #define safe_mod4(_ptr, _A, _B, _C, _D) \
334 typeof(_B) __sio(var)(b) = (_B); \
342 #define safe_mod5(_ptr, _A, _B, _C, _D, _E) \
344 typeof(_B) __sio(var)(b) = (_B); \
356 #define safe_uadd(_ptr, _a, _b) \
358 if ((typeof(_a))(_b) <= (typeof(_a))(__sio(m)(umax)(_a) - (_a))) { \
359 if ((_ptr)) { *((typeof(_a)*)(_ptr)) = (_a) + (_b); } \
363 #define safe_sadd(_ptr, _a, _b) \
365 if (((_b) > (typeof(_a))0) && ((_a) > (typeof(_a))0)) { /*>0*/ \
366 if ((_a) > (typeof(_a))(__sio(m)(smax)(_a) - (_b))) __sio(var)(ok) = 0; \
367 } else if (!((_b) > (typeof(_a))0) && !((_a) > (typeof(_a))0)) { /*<0*/ \
368 if ((_a) < (typeof(_a))(__sio(m)(smin)(_a) - (_b))) __sio(var)(ok) = 0; \
370 if (__sio(var)(ok) && (_ptr)) { *((typeof(_a)*)(_ptr)) = (_a) + (_b); } \
373 #define safe_usub(_ptr, _a, _b) \
375 if ((_a) >= (_b)) { \
376 if ((_ptr)) { *((typeof(_a)*)(_ptr)) = (_a) - (_b); } \
381 #define safe_ssub(_ptr, _a, _b) \
383 if (!((_b) <= 0 && (_a) > (__sio(m)(smax)(_a) + (_b))) && \
384 !((_b) > 0 && (_a) < (__sio(m)(smin)(_a) + (_b)))) { \
386 if ((_ptr)) { *((typeof(_a)*)(_ptr)) = (_a) - (_b); } \
390 #define safe_umul(_ptr, _a, _b) \
392 if (!(_b) || (_a) <= (__sio(m)(umax)(_a) / (_b))) { \
394 if ((_ptr)) { *((typeof(_a)*)(_ptr)) = (_a) * (_b); } \
398 #define safe_smul(_ptr, _a, _b) \
401 if ((_b) > 0) { /* b and a are positive */ \
402 if ((_a) > (__sio(m)(smax)(_a) / (_b))) { \
407 if ((_b) < (__sio(m)(smin)(_a) / (_a))) { \
413 if ((_b) > 0) { /* a is non-positive, b is positive */ \
414 if ((_a) < (__sio(m)(smin)(_a) / (_b))) { \
419 if( ((_a) != 0) && ((_b) < (__sio(m)(smax)(_a) / (_a)))) { \
424 if (__sio(var)(ok) && (_ptr)) { *((typeof(_a)*)(_ptr)) = (_a) * (_b); } \
428 #define safe_udiv(_ptr, _a, _b) \
430 if ((_b) != 0) { \
431 if ((_ptr)) { *((typeof(_a)*)(_ptr)) = (_a) / (_b); } \
437 #define safe_sdiv(_ptr, _a, _b) \
439 if ((_b) != 0 && \
440 (((_a) != __sio(m)(smin)(_a)) || ((_b) != (typeof(_b))-1))) { \
441 if ((_ptr)) { *((typeof(_a)*)(_ptr)) = (_a) / (_b); } \
446 #define safe_umod(_ptr, _a, _b) \
448 if ((_b) != 0) { \
449 if ((_ptr)) { *((typeof(_a)*)(_ptr)) = (_a) % (_b); } \
454 #define safe_smod(_ptr, _a, _b) \
456 if ((_b) != 0 && \
457 (((_a) != __sio(m)(smin)(_a)) || ((_b) != (typeof(_b))-1))) { \
458 if ((_ptr)) { *((typeof(_a)*)(_ptr)) = (_a) % (_b); } \