Lines Matching defs:rv
44 PRInt32 rv, oldval, test, result = 0;
48 rv = PR_AtomicIncrement(&test);
49 result = result | ((rv == -1) ? 0 : 1);
52 oldval, rv, (rv == -1) ? "PASSED" : "FAILED");
54 rv = PR_AtomicIncrement(&test);
55 result = result | ((rv == 0) ? 0 : 1);
58 oldval, rv, (rv == 0) ? "PASSED" : "FAILED");
60 rv = PR_AtomicIncrement(&test);
61 result = result | ((rv == 1) ? 0 : 1);
64 oldval, rv, (rv == 1) ? "PASSED" : "FAILED");
67 rv = PR_AtomicAdd(&test,1);
68 result = result | ((rv == -1) ? 0 : 1);
71 oldval, 1, rv, (rv == -1) ? "PASSED" : "FAILED");
73 rv = PR_AtomicAdd(&test, 4);
74 result = result | ((rv == 3) ? 0 : 1);
77 oldval, 4, rv, (rv == 3) ? "PASSED" : "FAILED");
79 rv = PR_AtomicAdd(&test, -6);
80 result = result | ((rv == -3) ? 0 : 1);
83 oldval, -6, rv, (rv == -3) ? "PASSED" : "FAILED");
86 rv = PR_AtomicDecrement(&test);
87 result = result | ((rv == 1) ? 0 : 1);
90 oldval, rv, (rv == 1) ? "PASSED" : "FAILED");
92 rv = PR_AtomicDecrement(&test);
93 result = result | ((rv == 0) ? 0 : 1);
96 oldval, rv, (rv == 0) ? "PASSED" : "FAILED");
98 rv = PR_AtomicDecrement(&test);
99 result = result | ((rv == -1) ? 0 : 1);
102 oldval, rv, (rv == -1) ? "PASSED" : "FAILED");
106 rv = PR_AtomicSet(&test, 2);
107 result = result | (((rv == -2) && (test == 2)) ? 0 : 1);
110 oldval, 2, rv, ((rv == -2) && (test == 2)) ? "PASSED" : "FAILED");
114 rv = PR_AtomicSet(&test, -2);
115 result = result | (((rv == -2) && (test == -2)) ? 0 : 1);
118 oldval, -2, rv, ((rv == -2) && (test == -2)) ? "PASSED" : "FAILED");