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

Method isMappedMethod

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

Source from the content-addressed store, hash-verified

3175 }
3176
3177 public static boolean isMappedMethod(MethodReferenceEntry methodReferenceEntry) {
3178 if (CacheEnabler.areCachesEnabled())
3179 return getBoolean(mappedMethodFlags, methodReferenceEntry);
3180 boolean isMapped = false;
3181 for (final Method kernelMethod : Kernel.class.getDeclaredMethods()) {
3182 if (kernelMethod.isAnnotationPresent(OpenCLMapping.class)) {
3183 if (methodReferenceEntry.getNameAndTypeEntry().getNameUTF8Entry().getUTF8().equals(kernelMethod.getName())) {
3184
3185 // well they have the same name ;)
3186 isMapped = true;
3187 }
3188 }
3189 }
3190 return (isMapped);
3191 }
3192
3193 public static boolean isOpenCLDelegateMethod(MethodReferenceEntry methodReferenceEntry) {
3194 if (CacheEnabler.areCachesEnabled())

Callers 5

resolveCalledMethodMethod · 0.95
EntrypointMethod · 0.95
getCallTargetMethod · 0.95
writeMethodMethod · 0.95

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