]> zoso.dev Git - libnemo.git/commitdiff
Adjust section headings.
authorChris Duncan <chris@zoso.dev>
Wed, 8 Jan 2025 20:06:06 +0000 (12:06 -0800)
committerChris Duncan <chris@zoso.dev>
Wed, 8 Jan 2025 20:06:06 +0000 (12:06 -0800)
src/lib/nano-pow/shaders/gpu-compute.ts

index 5d839f1e76c7e289b2c9591d639df0746e463fa8..f710de66f4e8ecc4381275ecd68e85d2a3a03d8c 100644 (file)
@@ -201,14 +201,14 @@ fn main(
        var xor0: u32;
        var xor1: u32;
 
-       /******************************************************************
-       *                                                                                                       ROUND(0)                                                                                                                        *
-       ******************************************************************/
+       /****************************************************************************
+       *                                                                                                                               ROUND(0)                                                                                                                                        *
+       ****************************************************************************/
 
        /**
-       * ROUND 0.1
-       * G(&v0, &v1, &v8, &v9, &v16, &v17, &v24, &v25, m0, m1, m2, m3);
+       * r=0, i=0, a=v[0-1], b=v[8-9], c=v[16-17], d=v[24-25]
        */
+
        // a = a + b;
        o0 = v0 + v8;
        o1 = v1 + v9;
@@ -301,9 +301,9 @@ fn main(
 
 
 
-       /******************************************************************
-       *                                                                                                       ROUND(1)                                                                                                                        *
-       ******************************************************************/
+       /****************************************************************************
+       *                                                                                                                               ROUND(1)                                                                                                                                        *
+       ****************************************************************************/
 
        G(&v0, &v1, &v8, &v9, &v16, &v17, &v24, &v25, 0u, 0u, 0u, 0u);
        G(&v2, &v3, &v10, &v11, &v18, &v19, &v26, &v27, m8, m9, 0u, 0u);
@@ -316,9 +316,9 @@ fn main(
 
 
 
-       /******************************************************************
-       *                                                                                                       ROUND(2)                                                                                                                        *
-       ******************************************************************/
+       /****************************************************************************
+       *                                                                                                                               ROUND(2)                                                                                                                                        *
+       ****************************************************************************/
 
        G(&v0, &v1, &v8, &v9, &v16, &v17, &v24, &v25, 0u, 0u, 0u, 0u);
        G(&v2, &v3, &v10, &v11, &v18, &v19, &v26, &v27, 0u, 0u, m0, m1);
@@ -331,9 +331,9 @@ fn main(
 
 
 
-       /******************************************************************
-       *                                                                                                       ROUND(3)                                                                                                                        *
-       ******************************************************************/
+       /****************************************************************************
+       *                                                                                                                               ROUND(3)                                                                                                                                        *
+       ****************************************************************************/
 
        G(&v0, &v1, &v8, &v9, &v16, &v17, &v24, &v25, 0u, 0u, 0u, 0u);
        G(&v2, &v3, &v10, &v11, &v18, &v19, &v26, &v27, m6, m7, m2, m3);
@@ -346,9 +346,9 @@ fn main(
 
 
 
-       /******************************************************************
-       *                                                                                                       ROUND(4)                                                                                                                        *
-       ******************************************************************/
+       /****************************************************************************
+       *                                                                                                                               ROUND(4)                                                                                                                                        *
+       ****************************************************************************/
 
        G(&v0, &v1, &v8, &v9, &v16, &v17, &v24, &v25, 0u, 0u, m0, m1);
        G(&v2, &v3, &v10, &v11, &v18, &v19, &v26, &v27, 0u, 0u, 0u, 0u);
@@ -361,9 +361,9 @@ fn main(
 
 
 
-       /******************************************************************
-       *                                                                                                       ROUND(5)                                                                                                                        *
-       ******************************************************************/
+       /****************************************************************************
+       *                                                                                                                               ROUND(5)                                                                                                                                        *
+       ****************************************************************************/
 
        G(&v0, &v1, &v8, &v9, &v16, &v17, &v24, &v25, m4, m5, 0u, 0u);
        G(&v2, &v3, &v10, &v11, &v18, &v19, &v26, &v27, 0u, 0u, 0u, 0u);
@@ -376,9 +376,9 @@ fn main(
 
 
 
-       /******************************************************************
-       *                                                                                                       ROUND(6)                                                                                                                        *
-       ******************************************************************/
+       /****************************************************************************
+       *                                                                                                                               ROUND(6)                                                                                                                                        *
+       ****************************************************************************/
 
        G(&v0, &v1, &v8, &v9, &v16, &v17, &v24, &v25, 0u, 0u, 0u, 0u);
        G(&v2, &v3, &v10, &v11, &v18, &v19, &v26, &v27, m2, m3, 0u, 0u);
@@ -391,9 +391,9 @@ fn main(
 
 
 
-       /******************************************************************
-       *                                                                                                       ROUND(7)                                                                                                                        *
-       ******************************************************************/
+       /****************************************************************************
+       *                                                                                                                               ROUND(7)                                                                                                                                        *
+       ****************************************************************************/
 
        G(&v0, &v1, &v8, &v9, &v16, &v17, &v24, &v25, 0u, 0u, 0u, 0u);
        G(&v2, &v3, &v10, &v11, &v18, &v19, &v26, &v27, 0u, 0u, 0u, 0u);
@@ -406,9 +406,9 @@ fn main(
 
 
 
-       /******************************************************************
-       *                                                                                                       ROUND(8)                                                                                                                        *
-       ******************************************************************/
+       /****************************************************************************
+       *                                                                                                                               ROUND(8)                                                                                                                                        *
+       ****************************************************************************/
 
        G(&v0, &v1, &v8, &v9, &v16, &v17, &v24, &v25, 0u, 0u, 0u, 0u);
        G(&v2, &v3, &v10, &v11, &v18, &v19, &v26, &v27, 0u, 0u, 0u, 0u);
@@ -421,9 +421,9 @@ fn main(
 
 
 
-       /******************************************************************
-       *                                                                                                       ROUND(9)                                                                                                                        *
-       ******************************************************************/
+       /****************************************************************************
+       *                                                                                                                               ROUND(9)                                                                                                                                        *
+       ****************************************************************************/
 
        G(&v0, &v1, &v8, &v9, &v16, &v17, &v24, &v25, 0u, 0u, m4, m5);
        G(&v2, &v3, &v10, &v11, &v18, &v19, &v26, &v27, 0u, 0u, m8, m9);
@@ -436,9 +436,9 @@ fn main(
 
 
 
-       /******************************************************************
-       *                                                                                                       ROUND(10)                                                                                                                       *
-       ******************************************************************/
+       /****************************************************************************
+       *                                                                                                                               ROUND(10)                                                                                                                                       *
+       ****************************************************************************/
 
        G(&v0, &v1, &v8, &v9, &v16, &v17, &v24, &v25, m0, m1, m2, m3);
        G(&v2, &v3, &v10, &v11, &v18, &v19, &v26, &v27, m4, m5, m6, m7);
@@ -451,9 +451,9 @@ fn main(
 
 
 
-       /******************************************************************
-       *                                                                                                       ROUND(11)                                                                                                                       *
-       ******************************************************************/
+       /****************************************************************************
+       *                                                                                                                               ROUND(11)                                                                                                                                       *
+       ****************************************************************************/
 
        G(&v0, &v1, &v8, &v9, &v16, &v17, &v24, &v25, 0u, 0u, 0u, 0u);
        G(&v2, &v3, &v10, &v11, &v18, &v19, &v26, &v27, m8, m9, 0u, 0u);
@@ -466,9 +466,9 @@ fn main(
 
 
 
-       /******************************************************************
-       *                                                                                                       NONCE CHECK                                                                                                             *
-       ******************************************************************/
+       /****************************************************************************
+       *                                                                                                                       NONCE CHECK                                                                                                                                     *
+       ****************************************************************************/
 
        /**
        * Set nonce if it passes the threshold and no other thread has set it