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
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ public VectorMask<E> eq(VectorMask<E> m) {
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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -425,9 +425,7 @@ public static <E> VectorMask<E> fromLong(VectorSpecies<E> species, long bits) {
* @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.
Expand Down