Home
last modified time | relevance | path

Searched refs:safe_add (Results 1 – 4 of 4) sorted by relevance

/external/safe-iop/src/
Dsafe_iop.c184 a=SCHAR_MIN; b=-1; EXPECT_FALSE(safe_add(NULL, a, b)); in T_add_s8()
185 a=SCHAR_MAX; b=1; EXPECT_FALSE(safe_add(NULL, a, b)); in T_add_s8()
186 a=10; b=11; EXPECT_TRUE(safe_add(NULL, a, b)); in T_add_s8()
187 a=-10; b=-11; EXPECT_TRUE(safe_add(NULL, a, b)); in T_add_s8()
188 a=SCHAR_MIN; b=SCHAR_MAX; EXPECT_TRUE(safe_add(NULL, a, b)); in T_add_s8()
189 a=SCHAR_MIN+1; b=-1; EXPECT_TRUE(safe_add(NULL, a, b)); in T_add_s8()
190 a=SCHAR_MAX/2; b=SCHAR_MAX/2; EXPECT_TRUE(safe_add(NULL, a, b)); in T_add_s8()
197 a=SHRT_MIN; b=-1; EXPECT_FALSE(safe_add(NULL, a, b)); in T_add_s16()
198 a=SHRT_MAX; b=1; EXPECT_FALSE(safe_add(NULL, a, b)); in T_add_s16()
199 a=10; b=11; EXPECT_TRUE(safe_add(NULL, a, b)); in T_add_s16()
[all …]
/external/v8/test/mjsunit/
Dmd5.js124 a = safe_add(a, olda);
125 b = safe_add(b, oldb);
126 c = safe_add(c, oldc);
127 d = safe_add(d, oldd);
133 return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b);
152 function safe_add(x, y) { function
/external/v8/test/webkit/fast/js/kde/
Dmd5-2.js39 function safe_add(x, y) function
59 return safe_add(rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b)
164 a = safe_add(a, olda)
165 b = safe_add(b, oldb)
166 c = safe_add(c, oldc)
167 d = safe_add(d, oldd)
/external/safe-iop/include/
Dsafe_iop.h106 #define safe_add(_ptr, __a, __b) \ macro
130 (safe_add(&(__sio(var)(r)), __sio(var)(a), __sio(var)(b)) && \
131 safe_add((_ptr), __sio(var)(r), __sio(var)(c))); })
139 (safe_add(&(__sio(var)(r)), __sio(var)(a), __sio(var)(b)) && \
140 safe_add(&(__sio(var)(r)), __sio(var)(r), __sio(var)(c)) && \
141 safe_add((_ptr), __sio(var)(r), (__sio(var)(d)))); })
150 (safe_add(&(__sio(var)(r)), __sio(var)(a), __sio(var)(b)) && \
151 safe_add(&(__sio(var)(r)), __sio(var)(r), __sio(var)(c)) && \
152 safe_add(&(__sio(var)(r)), __sio(var)(r), __sio(var)(d)) && \
153 safe_add((_ptr), __sio(var)(r), __sio(var)(e))); })
[all …]