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

Method isOpenCLDelegateMethod

src/main/java/com/aparapi/Kernel.java:3193–3207  ·  view source on GitHub ↗
(MethodReferenceEntry methodReferenceEntry)

Source from the content-addressed store, hash-verified

3191 }
3192
3193 public static boolean isOpenCLDelegateMethod(MethodReferenceEntry methodReferenceEntry) {
3194 if (CacheEnabler.areCachesEnabled())
3195 return getBoolean(openCLDelegateMethodFlags, methodReferenceEntry);
3196 boolean isMapped = false;
3197 for (final Method kernelMethod : Kernel.class.getDeclaredMethods()) {
3198 if (kernelMethod.isAnnotationPresent(OpenCLDelegate.class)) {
3199 if (methodReferenceEntry.getNameAndTypeEntry().getNameUTF8Entry().getUTF8().equals(kernelMethod.getName())) {
3200
3201 // well they have the same name ;)
3202 isMapped = true;
3203 }
3204 }
3205 }
3206 return (isMapped);
3207 }
3208
3209 public static boolean usesAtomic32(MethodReferenceEntry methodReferenceEntry) {
3210 if (CacheEnabler.areCachesEnabled())

Callers

nothing calls this directly

Calls 7

areCachesEnabledMethod · 0.95
getBooleanMethod · 0.95
getUTF8Method · 0.80
getNameMethod · 0.65
equalsMethod · 0.45
getNameUTF8EntryMethod · 0.45
getNameAndTypeEntryMethod · 0.45

Tested by

no test coverage detected