Skip to content

feat: Add trueish conversion for v128 types#2135

Merged
MaxGraey merged 1 commit intoAssemblyScript:mainfrom
MaxGraey:v128-trueish
Nov 11, 2021
Merged

feat: Add trueish conversion for v128 types#2135
MaxGraey merged 1 commit intoAssemblyScript:mainfrom
MaxGraey:v128-trueish

Conversation

@MaxGraey
Copy link
Copy Markdown
Member

It allow do this now:

export function foo(x: v128): i32 {
  if (x) { // internally uses v128.any_true(x)
     return -1;
  }
  return 0;
}
  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@MaxGraey MaxGraey merged commit 584bacf into AssemblyScript:main Nov 11, 2021
@MaxGraey MaxGraey deleted the v128-trueish branch November 11, 2021 16:22
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