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

Method usesAtomic32

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

Source from the content-addressed store, hash-verified

3207 }
3208
3209 public static boolean usesAtomic32(MethodReferenceEntry methodReferenceEntry) {
3210 if (CacheEnabler.areCachesEnabled())
3211 return getProperty(atomic32Cache, methodReferenceEntry, false);
3212 for (final Method kernelMethod : Kernel.class.getDeclaredMethods()) {
3213 if (kernelMethod.isAnnotationPresent(OpenCLMapping.class)) {
3214 if (methodReferenceEntry.getNameAndTypeEntry().getNameUTF8Entry().getUTF8().equals(kernelMethod.getName())) {
3215 final OpenCLMapping annotation = kernelMethod.getAnnotation(OpenCLMapping.class);
3216 return annotation.atomic32();
3217 }
3218 }
3219 }
3220 return (false);
3221 }
3222
3223 // For alpha release atomic64 is not supported
3224 public static boolean usesAtomic64(MethodReferenceEntry methodReferenceEntry) {

Callers 1

EntrypointMethod · 0.95

Calls 7

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

Tested by

no test coverage detected