Skip to content

Commit bbe7719

Browse files
authored
Re-add GLFW docs (#117)
* timetabled study progress * Finish
1 parent 9ab15ea commit bbe7719

File tree

3 files changed

+3581
-3883
lines changed

3 files changed

+3581
-3883
lines changed

src/Lab/CLMultiplication/Program.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ namespace CLMultiplication
66
{
77
internal class Program
88
{
9+
private static int Factorial(int n)
10+
{
11+
return n <= 1 ? 1 : n * Factorial(n - 1);
12+
}
913
private static unsafe void Main(string[] args)
1014
{
1115
string[] kernelCode =
@@ -15,12 +19,6 @@ private static unsafe void Main(string[] args)
1519
"}"
1620
};
1721

18-
19-
int Factorial(int n)
20-
{
21-
return n <= 1 ? 1 : n * Factorial(n - 1);
22-
}
23-
2422
// OpenCL related declarations
2523
int err;
2624
IntPtr platform;

0 commit comments

Comments
 (0)