| ... | @@ -248,10 +248,10 @@ pub const DeclGen = struct { | ... | @@ -248,10 +248,10 @@ pub const DeclGen = struct { |
| 248 | if (is_neg) try writer.writeByte('-'); | 248 | if (is_neg) try writer.writeByte('-'); |
| 249 | | 249 | |
| 250 | assert(high > 0); | 250 | assert(high > 0); |
| 251 | try writer.print("(((uint128_t)0x{x}u<<64)", .{ high }); | 251 | try writer.print("(((uint128_t)0x{x}u<<64)", .{high}); |
| 252 | | 252 | |
| 253 | if (low > 0) | 253 | if (low > 0) |
| 254 | try writer.print("+(uint128_t)0x{x}u", .{ low }); | 254 | try writer.print("+(uint128_t)0x{x}u", .{low}); |
| 255 | | 255 | |
| 256 | return writer.writeByte(')'); | 256 | return writer.writeByte(')'); |
| 257 | } | 257 | } |
| ... | @@ -306,7 +306,7 @@ pub const DeclGen = struct { | ... | @@ -306,7 +306,7 @@ pub const DeclGen = struct { |
| 306 | if (ty.isSignedInt()) | 306 | if (ty.isSignedInt()) |
| 307 | return writer.print("{d}", .{val.toSignedInt()}); | 307 | return writer.print("{d}", .{val.toSignedInt()}); |
| 308 | return writer.print("{d}u", .{val.toUnsignedInt()}); | 308 | return writer.print("{d}u", .{val.toUnsignedInt()}); |
| 309 | } | 309 | }, |
| 310 | }, | 310 | }, |
| 311 | .Float => { | 311 | .Float => { |
| 312 | if (ty.floatBits(dg.module.getTarget()) <= 64) { | 312 | if (ty.floatBits(dg.module.getTarget()) <= 64) { |