Skip to content

Commit 62cc0ae

Browse files
travisdowns-bottravisdowns
authored andcommitted
Comment from topin89 on vector-inc
1 parent 96170d3 commit 62cc0ae

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
_id: c0967d40-15d5-11ef-b95b-2bda080f0e5e
2+
_parent: 'https://travisdowns.github.io/blog/2019/08/26/vector-inc.html'
3+
replying_to_uid: ''
4+
message: >-
5+
> Surprisingly, while this works great in clang, it doesn’t work at all gcc,
6+
producing the same code as uint8_t. Somewhere in the guts of its optimizer,
7+
gcc ends up treating this type as a character type along with all the aliasing
8+
implications.
9+
10+
11+
Thankfully, since gcc 10.1 that's no longer the case, and opaque uint8
12+
vectorized just fine
13+
name: topin89
14+
email: ''
15+
hp: ''
16+
date: 1716119327

0 commit comments

Comments
 (0)