MCPcopy Create free account
hub / github.com/Syncleus/aparapi / compute

Method compute

src/main/java/com/aparapi/Kernel.java:3747–3756  ·  view source on GitHub ↗
(Class<?> key)

Source from the content-addressed store, hash-verified

3745
3746 private static final ValueCache<Class<?>, Map<String, Boolean>, RuntimeException> atomic32Cache = cacheProperty(new ValueComputer<Class<?>, Map<String, Boolean>>() {
3747 @Override
3748 public Map<String, Boolean> compute(Class<?> key) {
3749 Map<String, Boolean> properties = new HashMap<>();
3750 for (final Method method : key.getDeclaredMethods()) {
3751 if (isRelevant(method) && method.isAnnotationPresent(OpenCLMapping.class)) {
3752 properties.put(toSignature(method), method.getAnnotation(OpenCLMapping.class).atomic32());
3753 }
3754 }
3755 return properties;
3756 }
3757 });
3758
3759 private static final ValueCache<Class<?>, Map<String, Boolean>, RuntimeException> atomic64Cache = cacheProperty(new ValueComputer<Class<?>, Map<String, Boolean>>() {

Callers

nothing calls this directly

Calls 5

isRelevantMethod · 0.95
toSignatureMethod · 0.95
putMethod · 0.65
computeMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected