| ... | ... | @@ -51,7 +51,7 @@ pub fn format(x: Self, comptime fmt: []const u8, options: std.fmt.FormatOptions, |
| 51 | 51 | _ = fmt; |
| 52 | 52 | _ = options; |
| 53 | 53 | if (x.a < 255) { |
| 54 | | @setCold(true); |
| 54 | @branchHint(.cold); |
| 55 | 55 | try writer.print("#{:0>2}{:0>2}{:0>2}{:0>2}", .{ |
| 56 | 56 | std.fmt.fmtSliceHexLower(&.{x.r}), |
| 57 | 57 | std.fmt.fmtSliceHexLower(&.{x.g}), |
| ... | ... | @@ -73,7 +73,7 @@ pub usingnamespace _x.mixin(@This(), u8, .r, .g, .b); |
| 73 | 73 | // https://webstore.iec.ch/publication/6169 |
| 74 | 74 | pub fn to_linear_rgb(x: Self) color.LinearRgb { |
| 75 | 75 | const lut = comptime blk: { |
| 76 | | @setEvalBranchQuota(10_000); |
| 76 | @setEvalBranchQuota(20_000); |
| 77 | 77 | var res: [256]f32 = undefined; |
| 78 | 78 | for (0..256) |i| { |
| 79 | 79 | const c = @as(f32, @floatFromInt(i)) / 255.0; |