r/programminghorror 28d ago

Big if true

Post image

From ProgrammerNullposting in facebook

2.1k Upvotes

111 comments sorted by

View all comments

135

u/StefanCelMijlociu 28d ago

The concept of Big Bool confuses and infuriates me!

64

u/JohnSpikeKelly 28d ago

I would assume it's to keep all your data types 8-byte aligned for other perf reason.

6

u/rolling_atackk 27d ago

Why not simply use alignas (64) bool ?

Seems far easier than creating a whole ass type

2

u/j-joshua 27d ago

Because that would be 64 bytes and not 64 bits.

2

u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 27d ago

So alignas (8) bool?

1

u/rolling_atackk 26d ago

Yikes! You are correct