File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -68,13 +68,9 @@ LIBC_INLINE constexpr cpp::enable_if_t<
6868 void >
6969bit_copy (const From &from, To &to) {
7070 MSAN_UNPOISON (&from, sizeof (From));
71- if constexpr (sizeof (To) == sizeof (From)) {
72- to = bit_cast<To>(from);
73- } else {
74- char *dst = reinterpret_cast <char *>(&to);
75- const char *src = reinterpret_cast <const char *>(&from);
76- inline_copy<sizeof (From)>(src, dst);
77- }
71+ char *dst = reinterpret_cast <char *>(&to);
72+ const char *src = reinterpret_cast <const char *>(&from);
73+ inline_copy<sizeof (From)>(src, dst);
7874}
7975
8076template <typename T>
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ LIBC_INLINE static void raise_except(uint16_t excepts) {
114114 [[maybe_unused]] volatile float z = EXCEPTION_INPUTS[idx][0 ];
115115 z /= EXCEPTION_INPUTS[idx][1 ];
116116 } else {
117- // For the remaining exceptions, we floating point multiplications.
117+ // For the remaining exceptions, we use floating point multiplications.
118118 [[maybe_unused]] volatile float z = EXCEPTION_INPUTS[idx][0 ];
119119 z *= EXCEPTION_INPUTS[idx][1 ];
120120 }
Original file line number Diff line number Diff line change @@ -78,8 +78,6 @@ struct RoundingControl {
7878 static constexpr uint16_t ERROR = 0xFFFF ;
7979};
8080
81- static constexpr uint16_t MXCSR_ROUNDING_CONTROL_BIT_POSITION = 13 ;
82-
8381// Exception flags are individual bits in the corresponding registers.
8482// So, we just OR the bit values to get the full set of exceptions.
8583LIBC_INLINE static uint16_t get_status_value_from_except (int excepts) {
You can’t perform that action at this time.
0 commit comments