Skip to content

Conversation

MaxGraey
Copy link
Member

@MaxGraey MaxGraey commented Jan 5, 2021

It's pretty often case especially with retrieving mask in generic way like 2 ** (sizeof<T>() * 8) - 1 which return -1 in case with power operation and 0 in case with left shift (1 << (sizeof<T>() * 8)) - 1.

  • I've read the contributing guidelines

@dcodeIO dcodeIO merged commit ba28ea0 into AssemblyScript:master Jan 30, 2021
@MaxGraey MaxGraey deleted the opt-int-pow-for-pot branch January 30, 2021 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants