authorgravatar for hong@hspak.comHong Shick Pak <hong@hspak.com> 2019-08-29 21:23:49-07:00
committergravatar for hong@hspak.comHong Shick Pak <hong@hspak.com> 2019-08-29 21:23:49-07:00
log19964f5dc80792eb50cb3a45bdabe887a92d92cc
treebb6262371c890ee9b374dc049dd0a47409359c6c
parent9f4d44bc491b907dbe11fbc8cd70749606b2236c

run new zig fmt and remove stale comment


2 files changed, 7 insertions(+), 7 deletions(-)

std/special/compiler_rt/comparetf2.zig+7-6
...@@ -38,12 +38,14 @@ pub extern fn __letf2(a: f128, b: f128) c_int {...@@ -38,12 +38,14 @@ pub extern fn __letf2(a: f128, b: f128) c_int {
3838
39 // If at least one of a and b is positive, we get the same result comparing39 // If at least one of a and b is positive, we get the same result comparing
40 // a and b as signed integers as we would with a floating-point compare.40 // a and b as signed integers as we would with a floating-point compare.
41 return if ((aInt & bInt) >= 0) if (aInt < bInt)41 return if ((aInt & bInt) >= 0)
42 LE_LESS42 if (aInt < bInt)
43 else if (aInt == bInt)43 LE_LESS
44 LE_EQUAL44 else if (aInt == bInt)
45 LE_EQUAL
46 else
47 LE_GREATER
45 else48 else
46 LE_GREATER else
47 // Otherwise, both are negative, so we need to flip the sense of the49 // Otherwise, both are negative, so we need to flip the sense of the
48 // comparison to get the correct result. (This assumes a twos- or ones-50 // comparison to get the correct result. (This assumes a twos- or ones-
49 // complement integer representation; if integers are represented in a51 // complement integer representation; if integers are represented in a
...@@ -73,7 +75,6 @@ pub extern fn __getf2(a: f128, b: f128) c_int {...@@ -73,7 +75,6 @@ pub extern fn __getf2(a: f128, b: f128) c_int {
7375
74 if (aAbs > infRep or bAbs > infRep) return GE_UNORDERED;76 if (aAbs > infRep or bAbs > infRep) return GE_UNORDERED;
75 if ((aAbs | bAbs) == 0) return GE_EQUAL;77 if ((aAbs | bAbs) == 0) return GE_EQUAL;
76 // zig fmt issue here, see https://github.com/ziglang/zig/issues/2661
77 return if ((aInt & bInt) >= 0)78 return if ((aInt & bInt) >= 0)
78 if (aInt < bInt)79 if (aInt < bInt)
79 GE_LESS80 GE_LESS
std/zig/render.zig-1
...@@ -276,7 +276,6 @@ fn renderTopLevelDecl(allocator: *mem.Allocator, stream: var, tree: *ast.Tree, i...@@ -276,7 +276,6 @@ fn renderTopLevelDecl(allocator: *mem.Allocator, stream: var, tree: *ast.Tree, i
276 } else {276 } else {
277 try renderExpression(allocator, stream, tree, indent, start_col, field.type_expr.?, Space.Comma); // type,277 try renderExpression(allocator, stream, tree, indent, start_col, field.type_expr.?, Space.Comma); // type,
278 }278 }
279
280 } else if (field.type_expr == null and field.value_expr != null) {279 } else if (field.type_expr == null and field.value_expr != null) {
281 try renderToken(tree, stream, field.name_token, indent, start_col, Space.Space); // name280 try renderToken(tree, stream, field.name_token, indent, start_col, Space.Space); // name
282 try renderToken(tree, stream, tree.nextToken(field.name_token), indent, start_col, Space.Space); // =281 try renderToken(tree, stream, tree.nextToken(field.name_token), indent, start_col, Space.Space); // =