summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLMemory.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-02-24 02:06:34 +0100
committerMichael Bien <[email protected]>2010-02-24 02:06:34 +0100
commit01775d5597d6d1ef4fff195f572c1a6528438f66 (patch)
tree5868fed2cce5addd388bffb729590b28b94d0196 /src/com/mbien/opencl/CLMemory.java
parentd78faf0ef678cc87f5220d2cb8eccbe173449541 (diff)
code review. Fixed typos in javadoc and fixed some warnings.
Diffstat (limited to 'src/com/mbien/opencl/CLMemory.java')
-rw-r--r--src/com/mbien/opencl/CLMemory.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/com/mbien/opencl/CLMemory.java b/src/com/mbien/opencl/CLMemory.java
index 59537f85..28de48ed 100644
--- a/src/com/mbien/opencl/CLMemory.java
+++ b/src/com/mbien/opencl/CLMemory.java
@@ -32,12 +32,12 @@ public abstract class CLMemory <B extends Buffer> extends CLObject implements CL
/**
* Returns true if a host pointer must be specified on mem object creation.
*/
- protected static final boolean isHostPointerFlag(int flags) {
+ protected static boolean isHostPointerFlag(int flags) {
return (flags & CL_MEM_COPY_HOST_PTR) != 0
|| (flags & CL_MEM_USE_HOST_PTR) != 0;
}
- protected static final int sizeOfBufferElem(Buffer buffer) {
+ protected static int sizeOfBufferElem(Buffer buffer) {
if (buffer instanceof ByteBuffer) {
return BufferFactory.SIZEOF_BYTE;
} else if (buffer instanceof IntBuffer) {
@@ -175,7 +175,7 @@ public abstract class CLMemory <B extends Buffer> extends CLObject implements CL
* Enum representing CL_MEM_ALLOC_HOST_PTR.
* This flag specifies that the application wants the OpenCL implementation
* to allocate memory from host accessible memory.
- * {@link #ALLOC_HOST_PTR} and {@link #USE_BUFFER} are mutually exclusive.
+ * {@link #ALLOCATE_BUFFER} and {@link #USE_BUFFER} are mutually exclusive.
*/
ALLOCATE_BUFFER(CL_MEM_ALLOC_HOST_PTR),
@@ -230,8 +230,10 @@ public abstract class CLMemory <B extends Buffer> extends CLObject implements CL
}
/**
- * Configures the mapping process of
- * {@link com.mbien.opencl.CLCommandQueue#putMapBuffer(CLBuffer, CLMemory.Map, boolean)}.
+ * Configures the mapping process.
+ * @see com.mbien.opencl.CLCommandQueue#putMapBuffer(CLBuffer, com.mbien.opencl.CLMemory.Map, boolean).
+ * @see com.mbien.opencl.CLCommandQueue#putMapImage(CLImage2d, com.mbien.opencl.CLMemory.Map, boolean)
+ * @see com.mbien.opencl.CLCommandQueue#putMapImage(CLImage3d, com.mbien.opencl.CLMemory.Map, boolean)
*/
public enum Map {