Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8264109: Add vectorized implementation for VectorMask.andNot() #3211

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

@@ -150,6 +150,11 @@ public int lastTrue() {
return bOp(m, (i, a, b) -> a == b);
}

@Override
public VectorMask<E> andNot(VectorMask<E> m) {
return and(m.not());
}

/*package-private*/
static boolean anyTrueHelper(boolean[] bits) {
// FIXME: Maybe use toLong() != 0 here.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -425,9 +425,7 @@ public final int length() {
* @param m the second input mask
* @return the result of logically subtracting the second mask from this mask
*/
public final VectorMask<E> andNot(VectorMask<E> m) {
return and(m.not());
}
public abstract VectorMask<E> andNot(VectorMask<E> m);

/**
* Logically negates this mask.
ProTip! Use n and p to navigate between commits in a pull request.