mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 23:23:07 +00:00
Added values to AtomicRmw.Operation enum fields
This commit is contained in:
parent
6df8302be6
commit
ff76ba64d6
@ -4691,21 +4691,21 @@ pub const Function = struct {
|
||||
val: Value,
|
||||
|
||||
pub const Operation = enum(u5) {
|
||||
xchg,
|
||||
add,
|
||||
sub,
|
||||
@"and",
|
||||
nand,
|
||||
@"or",
|
||||
xor,
|
||||
max,
|
||||
min,
|
||||
umax,
|
||||
umin,
|
||||
fadd,
|
||||
fsub,
|
||||
fmax,
|
||||
fmin,
|
||||
xchg = 0,
|
||||
add = 1,
|
||||
sub = 2,
|
||||
@"and" = 3,
|
||||
nand = 4,
|
||||
@"or" = 5,
|
||||
xor = 6,
|
||||
max = 7,
|
||||
min = 8,
|
||||
umax = 9,
|
||||
umin = 10,
|
||||
fadd = 11,
|
||||
fsub = 12,
|
||||
fmax = 13,
|
||||
fmin = 14,
|
||||
none = std.math.maxInt(u5),
|
||||
|
||||
fn toLlvm(self: Operation) llvm.AtomicRMWBinOp {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user