summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLKernel.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/CLKernel.java
parentd78faf0ef678cc87f5220d2cb8eccbe173449541 (diff)
code review. Fixed typos in javadoc and fixed some warnings.
Diffstat (limited to 'src/com/mbien/opencl/CLKernel.java')
-rw-r--r--src/com/mbien/opencl/CLKernel.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/mbien/opencl/CLKernel.java b/src/com/mbien/opencl/CLKernel.java
index a4573a01..1ba84d1c 100644
--- a/src/com/mbien/opencl/CLKernel.java
+++ b/src/com/mbien/opencl/CLKernel.java
@@ -131,13 +131,13 @@ public class CLKernel extends CLObject implements CLResource, Cloneable {
return this;
}
- private final void setArgs(int startIndex, CLMemory<?>... values) {
+ private void setArgs(int startIndex, CLMemory<?>... values) {
for (int i = 0; i < values.length; i++) {
setArg(i+startIndex, values[i]);
}
}
- private final void setArgument(int argumentIndex, int size, Buffer value) {
+ private void setArgument(int argumentIndex, int size, Buffer value) {
if(argumentIndex >= numArgs || argumentIndex < 0) {
throw new IndexOutOfBoundsException("kernel "+ toString() +" has "+numArgs+
" arguments, can not set argument with index "+argumentIndex);
@@ -171,19 +171,19 @@ public class CLKernel extends CLObject implements CLResource, Cloneable {
return force32BitArgs;
}
- private final Buffer wrap(float value) {
+ private Buffer wrap(float value) {
return buffer.putFloat(value).rewind();
}
- private final Buffer wrap(double value) {
+ private Buffer wrap(double value) {
return buffer.putDouble(value).rewind();
}
- private final Buffer wrap(int value) {
+ private Buffer wrap(int value) {
return buffer.putInt(value).rewind();
}
- private final Buffer wrap(long value) {
+ private Buffer wrap(long value) {
return buffer.putLong(value).rewind();
}