(MethodReferenceEntry methodReferenceEntry)
| 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) { |
no test coverage detected