Re:KolibriOS – operating system written entirely in assembly...
by saagarjha on Wednesday April 15, 2020 @05:27AM
(#22875911)
Type punning in general would be somewhat difficult to do here in a way that vectorized but was still defined by the standard. You’d need to put a branch with undefined behavior in it when alignment wasn’t satisfied, then do a memcpy into a vector type, and hope that the compiler understands what you’re doing and doesn’t deoptimize it.
[ Parent
| on HN ]
There are no comments on this comment yet.