the.bay.news

Add Unsafe Shift Operators

Ziggit
Add Unsafe Shift Operators
For some reason this couldn’t actually go in Brainstorming, cause it’s read-only. Anyways I have a working chess engine in C++, I wanted to see how Zig was, I was hearing some really nice things. Everything worked nicely until a certain point, I noticed that the shifting operators on 64-bit unsigned integers require a 6-bit unsigned integer as the shift amount. I thought this was fine, I would just change my square indices all to u6… Little did I know there is a small issue. I disassembled the ...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.