You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|_, TFloat_ -> false(* casting float to an integral type always looses the decimals *)
371
+
|TFloat (FFloat16, _), (TInt((IBool | IChar | IUChar | ISChar), _) | TEnum ({ekind = IBool | IChar | IUChar | ISChar; _}, _)) -> true(* reasonably small integers can be stored in _Float16 *)
367
372
|TFloat (fk, _), (TInt((IBool | IChar | IUChar | ISChar | IShort | IUShort), _) | TEnum ({ekind = IBool | IChar | IUChar | ISChar | IShort | IUShort; _}, _)) whennot (Cilfacade.isComplexFKind fk) -> true(* reasonably small integers can be stored in all fkinds *)
368
373
|TFloat ((FDouble | FLongDouble | FFloat128), _), (TInt((IInt | IUInt | ILong | IULong), _) | TEnum ({ekind = IInt | IUInt | ILong | IULong; _}, _)) -> true(* values stored in between 16 and 32 bits can only be stored in at least doubles *)
369
374
|TFloat_, _ -> false(* all wider integers can not be completely put into a float, partially because our internal representation of long double is the same as for doubles *)
0 commit comments