Search code examples
bitwise casting uint32_t to float in C/C++...

c++castingfloating-pointtype-punning

Read More
Implementing std::bit_cast equivalent in C...

cmacrostypeoftype-punningc23

Read More
Is reinterpret_cast<char*>(myTypePtr) assumed to point to an array?...

c++language-lawyertype-punning

Read More
Type-pun uint64_t as two uint32_t in C++20...

c++c++20type-punning

Read More
Is `reinterpret_cast` actually good for anything?...

c++castingc++17reinterpret-casttype-punning

Read More
Why is this access of base class data members deemed to be type punning (in optimized builds)?...

c++optimizationstrict-aliasingtype-punning

Read More
What is the modern, correct way to do type punning in C++?...

c++performancecastinglanguage-lawyertype-punning

Read More
Strict aliasing error for fp16 to fp32 conversion...

cstrict-aliasingtype-punning

Read More
How to fill a [u8] array with a repeated u16 value?...

rusttype-conversiontype-punningrust-no-std

Read More
type-punning a char array struct member...

cstrict-aliasingtype-punning

Read More
Directly increase the exponent of a double in order to multiply by a power of two...

javafloating-pointdoublemicro-optimizationtype-punning

Read More
How do I reinterpret data through a different type? (type punning confusion)...

c++strict-aliasingtype-punning

Read More
Why is type punning considered UB?...

ccastingundefined-behaviortype-punning

Read More
Strict Aliasing Rule and Type Aliasing in C++...

c++language-lawyerstrict-aliasingtype-punning

Read More
How to tell if type punning is ok on my platform?...

c++type-punning

Read More
custom optional breaks strict aliasing rules...

c++option-typereinterpret-caststrict-aliasingtype-punning

Read More
Opinions on type-punning in C++?...

c++castingtype-punning

Read More
Endianness conversion without relying on undefined behavior...

cendiannessunionstype-punning

Read More
Is accessing int as unsigned long undefined behavior?...

cwinapitype-punning

Read More
How evil would it be to use type punning between trivially copyable structs?...

c++type-punning

Read More
How can I correctly type-pun?...

cemulationtype-punningz80

Read More
Strict aliasing and casting union pointers...

cgcccastingstrict-aliasingtype-punning

Read More
How are elements in an std::unordered_set stored in memory in C++?...

c++pointersmemoryhashtype-punning

Read More
Issue using Type Punning with union...

cuniontype-punningc-standard-library

Read More
Is accessing one member in a union that copied from a union with another member set undefined or uns...

c++c++11type-punning

Read More
Reliable type-punning across C and C++ standards...

c++ctype-conversionlanguage-lawyertype-punning

Read More
is bit_cast without compiler support for constexpr memcpy possible?...

c++undefined-behaviorconstexprc++20type-punning

Read More
How to get float bit representation without UB in C++?...

c++strict-aliasingtype-punningstdlaunder

Read More
Is type punning via union pointer legal in C?...

clanguage-lawyertype-punning

Read More
C++ type punning via fallback to C...

c++type-punning

Read More
BackNext