Lines Matching defs:oldval
41 uint64_t oldval;
46 oldval = *count_p;
47 newval = oldval - n;
48 if (oldval <= n)
50 } while (atomic_cas_64(count_p, oldval, newval) != oldval);
61 uint64_t oldval;
66 oldval = *count_p;
67 newval = oldval + n;
68 } while (atomic_cas_64(count_p, oldval, newval) != oldval);
77 uint64_t oldval;
82 oldval = *count_p;
83 newval = NEXT(oldval, limit);
84 } while (atomic_cas_64(count_p, oldval, newval) != oldval);
86 return (oldval);
96 uint64_t oldval;
101 oldval = *sp;
102 newval = NEXT(oldval, limit);
103 } while (atomic_cas_64(sp, oldval, newval) != oldval);
105 return (oldval);
114 uint64_t oldval;
119 oldval = *count_p;
120 newval = oldval - n;
121 } while (atomic_cas_64(count_p, oldval, newval) != oldval);
131 uint64_t oldval;
136 oldval = *sp;
137 newval = oldval & ~bits;
138 } while (atomic_cas_64(sp, oldval, newval) != oldval);
140 return (oldval);
150 uint32_t oldval;
155 oldval = *sp;
156 newval = oldval << count;
157 } while (atomic_cas_32(sp, oldval, newval) != oldval);
159 return (oldval);