old = oldt;
oldt = _uatomic_cmpxchg(addr, old, old & val, 1);
} while (oldt != old);
+
+ return;
}
#endif
#ifdef UATOMIC_HAS_ATOMIC_SHORT
old = oldt;
oldt = _uatomic_cmpxchg(addr, old, old & val, 4);
} while (oldt != old);
+
+ return;
}
#if (CAA_BITS_PER_LONG == 64)
case 8:
old = oldt;
oldt = _uatomic_cmpxchg(addr, old, old & val, 8);
} while (oldt != old);
+
+ return;
}
#endif
}
_uatomic_link_error();
- return 0;
}
#define uatomic_and(addr, v) \
old = oldt;
oldt = _uatomic_cmpxchg(addr, old, old | val, 1);
} while (oldt != old);
+
+ return;
}
#endif
#ifdef UATOMIC_HAS_ATOMIC_SHORT
old = oldt;
oldt = _uatomic_cmpxchg(addr, old, old | val, 2);
} while (oldt != old);
+
+ return;
}
#endif
case 4:
old = oldt;
oldt = _uatomic_cmpxchg(addr, old, old | val, 4);
} while (oldt != old);
+
+ return;
}
#if (CAA_BITS_PER_LONG == 64)
case 8:
old = oldt;
oldt = _uatomic_cmpxchg(addr, old, old | val, 8);
} while (oldt != old);
+
+ return;
}
#endif
}
_uatomic_link_error();
- return 0;
}
#define uatomic_or(addr, v) \