Java Code Examples for sha.predicate.IntrinsicPredicates#SHA512_INSTRUCTION_AVAILABLE
The following examples show how to use
sha.predicate.IntrinsicPredicates#SHA512_INSTRUCTION_AVAILABLE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SHAOptionsBase.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Returns the predicate indicating whether or not CPU instructions required * by the option with name {@code optionName} are available. * * @param optionName The name of the option for which a predicate should be * returned. * @return The predicate on availability of CPU instructions required by the * option. */ protected static BooleanSupplier getPredicateForOption(String optionName) { switch (optionName) { case SHAOptionsBase.USE_SHA_OPTION: return IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION: return IntrinsicPredicates.SHA1_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION: return IntrinsicPredicates.SHA256_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION: return IntrinsicPredicates.SHA512_INSTRUCTION_AVAILABLE; default: throw new Error("Unexpected option " + optionName); } }
Example 2
Source File: SHAOptionsBase.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Returns the predicate indicating whether or not CPU instructions required * by the option with name {@code optionName} are available. * * @param optionName The name of the option for which a predicate should be * returned. * @return The predicate on availability of CPU instructions required by the * option. */ protected static BooleanSupplier getPredicateForOption(String optionName) { switch (optionName) { case SHAOptionsBase.USE_SHA_OPTION: return IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION: return IntrinsicPredicates.SHA1_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION: return IntrinsicPredicates.SHA256_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION: return IntrinsicPredicates.SHA512_INSTRUCTION_AVAILABLE; default: throw new Error("Unexpected option " + optionName); } }
Example 3
Source File: SHAOptionsBase.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Returns the predicate indicating whether or not CPU instructions required * by the option with name {@code optionName} are available. * * @param optionName The name of the option for which a predicate should be * returned. * @return The predicate on availability of CPU instructions required by the * option. */ protected static BooleanSupplier getPredicateForOption(String optionName) { switch (optionName) { case SHAOptionsBase.USE_SHA_OPTION: return IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION: return IntrinsicPredicates.SHA1_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION: return IntrinsicPredicates.SHA256_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION: return IntrinsicPredicates.SHA512_INSTRUCTION_AVAILABLE; default: throw new Error("Unexpected option " + optionName); } }
Example 4
Source File: SHAOptionsBase.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Returns the predicate indicating whether or not CPU instructions required * by the option with name {@code optionName} are available. * * @param optionName The name of the option for which a predicate should be * returned. * @return The predicate on availability of CPU instructions required by the * option. */ protected static BooleanSupplier getPredicateForOption(String optionName) { switch (optionName) { case SHAOptionsBase.USE_SHA_OPTION: return IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION: return IntrinsicPredicates.SHA1_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION: return IntrinsicPredicates.SHA256_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION: return IntrinsicPredicates.SHA512_INSTRUCTION_AVAILABLE; default: throw new Error("Unexpected option " + optionName); } }
Example 5
Source File: SHAOptionsBase.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Returns the predicate indicating whether or not CPU instructions required * by the option with name {@code optionName} are available. * * @param optionName The name of the option for which a predicate should be * returned. * @return The predicate on availability of CPU instructions required by the * option. */ protected static BooleanSupplier getPredicateForOption(String optionName) { switch (optionName) { case SHAOptionsBase.USE_SHA_OPTION: return IntrinsicPredicates.ANY_SHA_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION: return IntrinsicPredicates.SHA1_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION: return IntrinsicPredicates.SHA256_INSTRUCTION_AVAILABLE; case SHAOptionsBase.USE_SHA512_INTRINSICS_OPTION: return IntrinsicPredicates.SHA512_INSTRUCTION_AVAILABLE; default: throw new Error("Unexpected option " + optionName); } }