Questions
Linux
Laravel
Mysql
Ubuntu
Git
Menu
HTML
CSS
JAVASCRIPT
SQL
PYTHON
PHP
BOOTSTRAP
JAVA
JQUERY
R
React
Kotlin
×
Linux
Laravel
Mysql
Ubuntu
Git
New posts in type-punning
Portable data reinterpretation
Feb 18, 2020
c
type-punning
`std::complex<T>[n]` and `T[n*2]` type aliasing
Dec 24, 2021
c++
language-lawyer
strict-aliasing
type-punning
std::bit_cast with std::array
Sep 03, 2022
c++
c++20
type-punning
Is it undefined behaviour to call a function with pointers to different elements of a union as arguments?
Nov 19, 2022
c
language-lawyer
undefined-behavior
unions
type-punning
strict aliasing and memory alignment
Sep 15, 2022
c++
c
casting
type-punning
Is reinterpret_cast mostly useless?
Sep 12, 2022
c++
pointers
casting
reinterpret-cast
type-punning
What's a proper way of type-punning a float to an int and vice-versa?
Sep 15, 2022
c++
undefined-behavior
gcc-warning
strict-aliasing
type-punning
union 'punning' structs w/ "common initial sequence": Why does C (99+), but not C++, stipulate a 'visible declaration of the union type'?
Sep 05, 2022
c++
c
struct
unions
type-punning
Aliasing T* with char* is allowed. Is it also allowed the other way around?
Sep 04, 2022
c++
language-lawyer
strict-aliasing
type-punning
aligned_storage and strict aliasing
Apr 19, 2018
c++
undefined-behavior
language-lawyer
strict-aliasing
type-punning
What is the modern, correct way to do type punning in C++?
Nov 15, 2022
c++
performance
casting
language-lawyer
type-punning
Fix for dereferencing type-punned pointer will break strict-aliasing
Aug 30, 2022
c
strict-aliasing
type-punning
C# 'unsafe' function — *(float*)(&result) vs. (float)(result)
Aug 29, 2022
c#
unsafe
type-punning
Is type-punning through a union unspecified in C99, and has it become specified in C11?
Feb 17, 2022
c
c99
unions
c11
type-punning
Unions and type-punning
Aug 24, 2022
c++
c
unions
type-punning
Is it possible to write Quake's fast InvSqrt() function in Rust?
Sep 05, 2022
rust
floating-point
sqrt
type-punning
Purpose of Unions in C and C++
Aug 14, 2022
c++
c
unions
type-punning
What is the strict aliasing rule?
Aug 13, 2022
c++
c
undefined-behavior
strict-aliasing
type-punning
« Newer Entries