| ... | ... | @@ -1871,11 +1871,13 @@ typedef zig_i32 zig_f32; |
| 1871 | 1871 | #define zig_bitSizeOf_f64 64 |
| 1872 | 1872 | #define zig_libc_name_f64(name) name |
| 1873 | 1873 | #if _MSC_VER |
| 1874 | #ifdef ZIG_TARGET_ABI_MSVC |
| 1874 | 1875 | #define zig_bitSizeOf_c_longdouble 64 |
| 1876 | #endif |
| 1875 | 1877 | #define zig_as_special_constant_f64(sign, name, arg, repr) sign zig_as_f64(zig_msvc_flt_##name, ) |
| 1876 | | #else |
| 1878 | #else /* _MSC_VER */ |
| 1877 | 1879 | #define zig_as_special_constant_f64(sign, name, arg, repr) zig_as_special_f64(sign, name, arg, repr) |
| 1878 | | #endif |
| 1880 | #endif /* _MSC_VER */ |
| 1879 | 1881 | #if FLT_MANT_DIG == 53 |
| 1880 | 1882 | typedef float zig_f64; |
| 1881 | 1883 | #define zig_as_f64(fp, repr) fp##f |
| ... | ... | @@ -1977,16 +1979,32 @@ typedef zig_i128 zig_f128; |
| 1977 | 1979 | #endif |
| 1978 | 1980 | |
| 1979 | 1981 | #define zig_has_c_longdouble 1 |
| 1982 | |
| 1983 | #ifdef ZIG_TARGET_ABI_MSVC |
| 1984 | #define zig_libc_name_c_longdouble(name) name |
| 1985 | #else |
| 1980 | 1986 | #define zig_libc_name_c_longdouble(name) name##l |
| 1987 | #endif |
| 1988 | |
| 1981 | 1989 | #define zig_as_special_constant_c_longdouble(sign, name, arg, repr) zig_as_special_c_longdouble(sign, name, arg, repr) |
| 1982 | 1990 | #ifdef zig_bitSizeOf_c_longdouble |
| 1991 | |
| 1992 | #ifdef ZIG_TARGET_ABI_MSVC |
| 1993 | typedef double zig_c_longdouble; |
| 1994 | #undef zig_bitSizeOf_c_longdouble |
| 1995 | #define zig_bitSizeOf_c_longdouble 64 |
| 1996 | #define zig_as_c_longdouble(fp, repr) fp |
| 1997 | #else |
| 1983 | 1998 | typedef long double zig_c_longdouble; |
| 1984 | 1999 | #define zig_as_c_longdouble(fp, repr) fp##l |
| 1985 | | #else |
| 2000 | #endif |
| 2001 | |
| 2002 | #else /* zig_bitSizeOf_c_longdouble */ |
| 2003 | |
| 1986 | 2004 | #undef zig_has_c_longdouble |
| 2005 | #define zig_has_c_longdouble 0 |
| 1987 | 2006 | #define zig_bitSizeOf_c_longdouble 80 |
| 1988 | 2007 | #define zig_compiler_rt_abbrev_c_longdouble zig_compiler_rt_abbrev_f80 |
| 1989 | | #define zig_has_c_longdouble 0 |
| 1990 | 2008 | #define zig_repr_c_longdouble i128 |
| 1991 | 2009 | typedef zig_i128 zig_c_longdouble; |
| 1992 | 2010 | #define zig_as_c_longdouble(fp, repr) repr |
| ... | ... | @@ -1994,7 +2012,8 @@ typedef zig_i128 zig_c_longdouble; |
| 1994 | 2012 | #define zig_as_special_c_longdouble(sign, name, arg, repr) repr |
| 1995 | 2013 | #undef zig_as_special_constant_c_longdouble |
| 1996 | 2014 | #define zig_as_special_constant_c_longdouble(sign, name, arg, repr) repr |
| 1997 | | #endif |
| 2015 | |
| 2016 | #endif /* zig_bitSizeOf_c_longdouble */ |
| 1998 | 2017 | |
| 1999 | 2018 | #if !zig_has_float_builtins |
| 2000 | 2019 | #define zig_float_from_repr(Type, ReprType) \ |