authorgravatar for rpkak@noreply.codeberg.orgrpkak <rpkak@noreply.codeberg.org> 2026-04-08 08:41:07+02:00
committergravatar for rpkak@noreply.codeberg.orgrpkak <rpkak@noreply.codeberg.org> 2026-04-16 07:05:31+02:00
logf564a7733cb20395a399caea21aac6fa54af50b3
tree6200b871d63db564ba6bbf4656fd7382192dd692
parente74b98227eee5eef1c3a7cded0f8fff147178864
signaturebadge-check Signed by SSH key SHA256:A2g6ATENrgLKQcUdthsn72P0njmQxnHSimzwnyJsZzo

remove code, which is only reached if c_longdouble is only 16 or 32 bits big


20 files changed, 0 insertions(+), 40 deletions(-)

lib/compiler_rt/cos.zig-2
...@@ -173,8 +173,6 @@ pub fn cosq(x: f128) callconv(.c) f128 {...@@ -173,8 +173,6 @@ pub fn cosq(x: f128) callconv(.c) f128 {
173173
174pub fn cosl(x: c_longdouble) callconv(.c) c_longdouble {174pub fn cosl(x: c_longdouble) callconv(.c) c_longdouble {
175 switch (@typeInfo(c_longdouble).float.bits) {175 switch (@typeInfo(c_longdouble).float.bits) {
176 16 => return cosh(x),
177 32 => return cosf(x),
178 64 => return cos(x),176 64 => return cos(x),
179 80 => return cosx(x),177 80 => return cosx(x),
180 128 => return cosq(x),178 128 => return cosq(x),
lib/compiler_rt/exp.zig-2
...@@ -198,8 +198,6 @@ const expq = @import("exp_f128.zig").exp;...@@ -198,8 +198,6 @@ const expq = @import("exp_f128.zig").exp;
198198
199pub fn expl(x: c_longdouble) callconv(.c) c_longdouble {199pub fn expl(x: c_longdouble) callconv(.c) c_longdouble {
200 switch (@typeInfo(c_longdouble).float.bits) {200 switch (@typeInfo(c_longdouble).float.bits) {
201 16 => return __exph(x),
202 32 => return expf(x),
203 64 => return exp(x),201 64 => return exp(x),
204 80 => return __expx(x),202 80 => return __expx(x),
205 128 => return expq(x),203 128 => return expq(x),
lib/compiler_rt/exp2.zig-2
...@@ -165,8 +165,6 @@ pub const exp2q = @import("exp_f128.zig").exp2;...@@ -165,8 +165,6 @@ pub const exp2q = @import("exp_f128.zig").exp2;
165165
166pub fn exp2l(x: c_longdouble) callconv(.c) c_longdouble {166pub fn exp2l(x: c_longdouble) callconv(.c) c_longdouble {
167 switch (@typeInfo(c_longdouble).float.bits) {167 switch (@typeInfo(c_longdouble).float.bits) {
168 16 => return __exp2h(x),
169 32 => return exp2f(x),
170 64 => return exp2(x),168 64 => return exp2(x),
171 80 => return __exp2x(x),169 80 => return __exp2x(x),
172 128 => return exp2q(x),170 128 => return exp2q(x),
lib/compiler_rt/fabs.zig-2
...@@ -38,8 +38,6 @@ pub fn fabsq(a: f128) callconv(.c) f128 {...@@ -38,8 +38,6 @@ pub fn fabsq(a: f128) callconv(.c) f128 {
3838
39pub fn fabsl(x: c_longdouble) callconv(.c) c_longdouble {39pub fn fabsl(x: c_longdouble) callconv(.c) c_longdouble {
40 switch (@typeInfo(c_longdouble).float.bits) {40 switch (@typeInfo(c_longdouble).float.bits) {
41 16 => return __fabsh(x),
42 32 => return fabsf(x),
43 64 => return fabs(x),41 64 => return fabs(x),
44 80 => return __fabsx(x),42 80 => return __fabsx(x),
45 128 => return fabsq(x),43 128 => return fabsq(x),
lib/compiler_rt/fma.zig-2
...@@ -151,8 +151,6 @@ pub fn fmaq(x: f128, y: f128, z: f128) callconv(.c) f128 {...@@ -151,8 +151,6 @@ pub fn fmaq(x: f128, y: f128, z: f128) callconv(.c) f128 {
151151
152pub fn fmal(x: c_longdouble, y: c_longdouble, z: c_longdouble) callconv(.c) c_longdouble {152pub fn fmal(x: c_longdouble, y: c_longdouble, z: c_longdouble) callconv(.c) c_longdouble {
153 switch (@typeInfo(c_longdouble).float.bits) {153 switch (@typeInfo(c_longdouble).float.bits) {
154 16 => return __fmah(x, y, z),
155 32 => return fmaf(x, y, z),
156 64 => return fma(x, y, z),154 64 => return fma(x, y, z),
157 80 => return __fmax(x, y, z),155 80 => return __fmax(x, y, z),
158 128 => return fmaq(x, y, z),156 128 => return fmaq(x, y, z),
lib/compiler_rt/fmax.zig-2
...@@ -39,8 +39,6 @@ pub fn fmaxq(x: f128, y: f128) callconv(.c) f128 {...@@ -39,8 +39,6 @@ pub fn fmaxq(x: f128, y: f128) callconv(.c) f128 {
3939
40pub fn fmaxl(x: c_longdouble, y: c_longdouble) callconv(.c) c_longdouble {40pub fn fmaxl(x: c_longdouble, y: c_longdouble) callconv(.c) c_longdouble {
41 switch (@typeInfo(c_longdouble).float.bits) {41 switch (@typeInfo(c_longdouble).float.bits) {
42 16 => return __fmaxh(x, y),
43 32 => return fmaxf(x, y),
44 64 => return fmax(x, y),42 64 => return fmax(x, y),
45 80 => return __fmaxx(x, y),43 80 => return __fmaxx(x, y),
46 128 => return fmaxq(x, y),44 128 => return fmaxq(x, y),
lib/compiler_rt/fmin.zig-2
...@@ -39,8 +39,6 @@ pub fn fminq(x: f128, y: f128) callconv(.c) f128 {...@@ -39,8 +39,6 @@ pub fn fminq(x: f128, y: f128) callconv(.c) f128 {
3939
40pub fn fminl(x: c_longdouble, y: c_longdouble) callconv(.c) c_longdouble {40pub fn fminl(x: c_longdouble, y: c_longdouble) callconv(.c) c_longdouble {
41 switch (@typeInfo(c_longdouble).float.bits) {41 switch (@typeInfo(c_longdouble).float.bits) {
42 16 => return __fminh(x, y),
43 32 => return fminf(x, y),
44 64 => return fmin(x, y),42 64 => return fmin(x, y),
45 80 => return __fminx(x, y),43 80 => return __fminx(x, y),
46 128 => return fminq(x, y),44 128 => return fminq(x, y),
lib/compiler_rt/fmod.zig-2
...@@ -251,8 +251,6 @@ pub fn fmodq(a: f128, b: f128) callconv(.c) f128 {...@@ -251,8 +251,6 @@ pub fn fmodq(a: f128, b: f128) callconv(.c) f128 {
251251
252pub fn fmodl(a: c_longdouble, b: c_longdouble) callconv(.c) c_longdouble {252pub fn fmodl(a: c_longdouble, b: c_longdouble) callconv(.c) c_longdouble {
253 switch (@typeInfo(c_longdouble).float.bits) {253 switch (@typeInfo(c_longdouble).float.bits) {
254 16 => return __fmodh(a, b),
255 32 => return fmodf(a, b),
256 64 => return fmod(a, b),254 64 => return fmod(a, b),
257 80 => return __fmodx(a, b),255 80 => return __fmodx(a, b),
258 128 => return fmodq(a, b),256 128 => return fmodq(a, b),
lib/compiler_rt/log.zig-2
...@@ -443,8 +443,6 @@ pub fn logq(a: f128) callconv(.c) f128 {...@@ -443,8 +443,6 @@ pub fn logq(a: f128) callconv(.c) f128 {
443443
444pub fn logl(x: c_longdouble) callconv(.c) c_longdouble {444pub fn logl(x: c_longdouble) callconv(.c) c_longdouble {
445 switch (@typeInfo(c_longdouble).float.bits) {445 switch (@typeInfo(c_longdouble).float.bits) {
446 16 => return __logh(x),
447 32 => return logf(x),
448 64 => return log(x),446 64 => return log(x),
449 80 => return __logx(x),447 80 => return __logx(x),
450 128 => return logq(x),448 128 => return logq(x),
lib/compiler_rt/log10.zig-2
...@@ -177,8 +177,6 @@ pub fn log10q(a: f128) callconv(.c) f128 {...@@ -177,8 +177,6 @@ pub fn log10q(a: f128) callconv(.c) f128 {
177177
178pub fn log10l(x: c_longdouble) callconv(.c) c_longdouble {178pub fn log10l(x: c_longdouble) callconv(.c) c_longdouble {
179 switch (@typeInfo(c_longdouble).float.bits) {179 switch (@typeInfo(c_longdouble).float.bits) {
180 16 => return __log10h(x),
181 32 => return log10f(x),
182 64 => return log10(x),180 64 => return log10(x),
183 80 => return __log10x(x),181 80 => return __log10x(x),
184 128 => return log10q(x),182 128 => return log10q(x),
lib/compiler_rt/log2.zig-2
...@@ -170,8 +170,6 @@ pub fn log2q(a: f128) callconv(.c) f128 {...@@ -170,8 +170,6 @@ pub fn log2q(a: f128) callconv(.c) f128 {
170170
171pub fn log2l(x: c_longdouble) callconv(.c) c_longdouble {171pub fn log2l(x: c_longdouble) callconv(.c) c_longdouble {
172 switch (@typeInfo(c_longdouble).float.bits) {172 switch (@typeInfo(c_longdouble).float.bits) {
173 16 => return __log2h(x),
174 32 => return log2f(x),
175 64 => return log2(x),173 64 => return log2(x),
176 80 => return __log2x(x),174 80 => return __log2x(x),
177 128 => return log2q(x),175 128 => return log2q(x),
lib/compiler_rt/round.zig-2
...@@ -142,8 +142,6 @@ pub fn roundq(x_: f128) callconv(.c) f128 {...@@ -142,8 +142,6 @@ pub fn roundq(x_: f128) callconv(.c) f128 {
142142
143pub fn roundl(x: c_longdouble) callconv(.c) c_longdouble {143pub fn roundl(x: c_longdouble) callconv(.c) c_longdouble {
144 switch (@typeInfo(c_longdouble).float.bits) {144 switch (@typeInfo(c_longdouble).float.bits) {
145 16 => return __roundh(x),
146 32 => return roundf(x),
147 64 => return round(x),145 64 => return round(x),
148 80 => return __roundx(x),146 80 => return __roundx(x),
149 128 => return roundq(x),147 128 => return roundq(x),
lib/compiler_rt/sin.zig-2
...@@ -189,8 +189,6 @@ pub fn sinq(x: f128) callconv(.c) f128 {...@@ -189,8 +189,6 @@ pub fn sinq(x: f128) callconv(.c) f128 {
189189
190pub fn sinl(x: c_longdouble) callconv(.c) c_longdouble {190pub fn sinl(x: c_longdouble) callconv(.c) c_longdouble {
191 switch (@typeInfo(c_longdouble).float.bits) {191 switch (@typeInfo(c_longdouble).float.bits) {
192 16 => return sinh(x),
193 32 => return sinf(x),
194 64 => return sin(x),192 64 => return sin(x),
195 80 => return sinx(x),193 80 => return sinx(x),
196 128 => return sinq(x),194 128 => return sinq(x),
lib/compiler_rt/sincos.zig-2
...@@ -292,8 +292,6 @@ pub fn sincosq(x: f128, r_sin: *f128, r_cos: *f128) callconv(.c) void {...@@ -292,8 +292,6 @@ pub fn sincosq(x: f128, r_sin: *f128, r_cos: *f128) callconv(.c) void {
292292
293pub fn sincosl(x: c_longdouble, r_sin: *c_longdouble, r_cos: *c_longdouble) callconv(.c) void {293pub fn sincosl(x: c_longdouble, r_sin: *c_longdouble, r_cos: *c_longdouble) callconv(.c) void {
294 switch (@typeInfo(c_longdouble).float.bits) {294 switch (@typeInfo(c_longdouble).float.bits) {
295 16 => return sincosh(x, r_sin, r_cos),
296 32 => return sincosf(x, r_sin, r_cos),
297 64 => return sincos(x, r_sin, r_cos),295 64 => return sincos(x, r_sin, r_cos),
298 80 => return sincosx(x, r_sin, r_cos),296 80 => return sincosx(x, r_sin, r_cos),
299 128 => return sincosq(x, r_sin, r_cos),297 128 => return sincosq(x, r_sin, r_cos),
lib/compiler_rt/sqrt.zig-2
...@@ -481,8 +481,6 @@ fn _Qp_sqrt(c: *f128, a: *f128) callconv(.c) void {...@@ -481,8 +481,6 @@ fn _Qp_sqrt(c: *f128, a: *f128) callconv(.c) void {
481481
482pub fn sqrtl(x: c_longdouble) callconv(.c) c_longdouble {482pub fn sqrtl(x: c_longdouble) callconv(.c) c_longdouble {
483 switch (@typeInfo(c_longdouble).float.bits) {483 switch (@typeInfo(c_longdouble).float.bits) {
484 16 => return __sqrth(x),
485 32 => return sqrtf(x),
486 64 => return sqrt(x),484 64 => return sqrt(x),
487 80 => return __sqrtx(x),485 80 => return __sqrtx(x),
488 128 => return sqrtq(x),486 128 => return sqrtq(x),
lib/compiler_rt/tan.zig-2
...@@ -164,8 +164,6 @@ pub fn tanq(x: f128) callconv(.c) f128 {...@@ -164,8 +164,6 @@ pub fn tanq(x: f128) callconv(.c) f128 {
164164
165pub fn tanl(x: c_longdouble) callconv(.c) c_longdouble {165pub fn tanl(x: c_longdouble) callconv(.c) c_longdouble {
166 switch (@typeInfo(c_longdouble).float.bits) {166 switch (@typeInfo(c_longdouble).float.bits) {
167 16 => return tanh(x),
168 32 => return tanf(x),
169 64 => return tan(x),167 64 => return tan(x),
170 80 => return tanx(x),168 80 => return tanx(x),
171 128 => return tanq(x),169 128 => return tanq(x),
lib/compiler_rt/trunc.zig-2
...@@ -99,8 +99,6 @@ pub fn truncq(x: f128) callconv(.c) f128 {...@@ -99,8 +99,6 @@ pub fn truncq(x: f128) callconv(.c) f128 {
9999
100pub fn truncl(x: c_longdouble) callconv(.c) c_longdouble {100pub fn truncl(x: c_longdouble) callconv(.c) c_longdouble {
101 switch (@typeInfo(c_longdouble).float.bits) {101 switch (@typeInfo(c_longdouble).float.bits) {
102 16 => return __trunch(x),
103 32 => return truncf(x),
104 64 => return trunc(x),102 64 => return trunc(x),
105 80 => return __truncx(x),103 80 => return __truncx(x),
106 128 => return truncq(x),104 128 => return truncq(x),
lib/std/Target.zig-2
...@@ -3049,8 +3049,6 @@ pub fn cTypeByteSize(t: *const Target, c_type: CType) u16 {...@@ -3049,8 +3049,6 @@ pub fn cTypeByteSize(t: *const Target, c_type: CType) u16 {
3049 => @divExact(cTypeBitSize(t, c_type), 8),3049 => @divExact(cTypeBitSize(t, c_type), 8),
30503050
3051 .longdouble => switch (cTypeBitSize(t, c_type)) {3051 .longdouble => switch (cTypeBitSize(t, c_type)) {
3052 16 => 2,
3053 32 => 4,
3054 64 => 8,3052 64 => 8,
3055 80 => @intCast(std.mem.alignForward(usize, 10, cTypeAlignment(t, .longdouble))),3053 80 => @intCast(std.mem.alignForward(usize, 10, cTypeAlignment(t, .longdouble))),
3056 128 => 16,3054 128 => 16,
src/codegen/aarch64/Select.zig-2
...@@ -12381,8 +12381,6 @@ pub const CallAbiIterator = struct {...@@ -12381,8 +12381,6 @@ pub const CallAbiIterator = struct {
12381 .f128 => .quad,12381 .f128 => .quad,
12382 .c_longdouble => switch (zcu.getTarget().cTypeBitSize(.longdouble)) {12382 .c_longdouble => switch (zcu.getTarget().cTypeBitSize(.longdouble)) {
12383 else => unreachable,12383 else => unreachable,
12384 16 => .half,
12385 32 => .single,
12386 64 => .double,12384 64 => .double,
12387 80 => null,12385 80 => null,
12388 128 => .quad,12386 128 => .quad,
test/behavior/cast.zig-2
...@@ -1838,8 +1838,6 @@ test "coerce between pointers of compatible differently-named floats" {...@@ -1838,8 +1838,6 @@ test "coerce between pointers of compatible differently-named floats" {
1838 }1838 }
18391839
1840 const F = switch (@typeInfo(c_longdouble).float.bits) {1840 const F = switch (@typeInfo(c_longdouble).float.bits) {
1841 16 => f16,
1842 32 => f32,
1843 64 => f64,1841 64 => f64,
1844 80 => f80,1842 80 => f80,
1845 128 => f128,1843 128 => f128,