imk0tter

Kernel port code

Dec 21st, 2022 (edited)
348
0
Never
15
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. inline void port_shit(unsigned int x) {
  2.     //printf("OPEN: %i\n", x);
  3.     //printf("CONNECT: %i\n", x);
  4.     //printf("CLOSE: %i\n", x);
  5. }
  6. void kernel(unsigned int max_iteration) {
  7.     for (unsigned int current_iteration = 0; current_iteration < max_iteration; ++current_iteration) {
  8.         port_shit(current_iteration);
  9.     }
  10.     port_shit(max_iteration);
  11. }
Comments
  • imk0tter
    1 year (edited)
    # C 0.21 KB | 0 0
    1. void kernel(unsigned int max_iteration)
    2.  {
    3.     for (unsigned int current_iteration = 0; current_iteration < max_iteration; ++current_iteration)
    4.     {
    5.         // OPEN CONNECT CLOSE
    6.     }
    7.     // OPEN CONNECT CLOSE
    8. }
    • imk0tter
      1 year (edited)
      # C 0.21 KB | 0 0
      1. void kernel(unsigned int max_iteration) {
      2.     for (unsigned int current_iteration = 0; current_iteration < max_iteration; ++current_iteration) {
      3.         // OPEN CONNECT CLOSE
      4.     }
      5.     // OPEN CONNECT CLOSE
      6. }
      • imk0tter
        1 year (edited)
        # C 0.24 KB | 0 0
        1. void kernel(unsigned int max_iteration) {
        2.     for (unsigned int current_iteration = 0; current_iteration < max_iteration; ++current_iteration) {
        3.         // OPEN_CONNECT_CLOSE(current_iteration); }
        4.     // OPEN_CONNECT_CLOSE(max_iteration); }
        • imk0tter
          1 year (edited)
          # C 0.22 KB | 0 0
          1. void kernel(unsigned int max_iteration) { for (unsigned int current_iteration = 0; current_iteration < max_iteration; ++current_iteration) { // OPEN_CONNECT_CLOSE(current_iteration); }
          2.     // OPEN_CONNECT_CLOSE(max_iteration); }
          • imk0tter
            1 year
            # C 0.23 KB | 0 0
            1. void kernel(unsigned int max_iteration)
            2. {
            3. for (unsigned int current_iteration = 0; current_iteration < max_iteration; ++current_iteration)
            4. {
            5. // OPEN_CONNECT_CLOSE(current_iteration);
            6. }
            7. // OPEN_CONNECT_CLOSE(max_iteration);
            8. }
            • imk0tter
              1 year (edited)
              # C 0.22 KB | 0 0
              1. void kernel(unsigned int max_iteration) { for (unsigned int current_iteration = 0; current_iteration < max_iteration; ++current_iteration) { // OPEN_CONNECT_CLOSE(current_iteration); } //OPEN_CONNECT_CLOSE(max_iteration); }
              • imk0tter
                1 year
                # C 0.20 KB | 0 0
                1. void kernel(unsigned int max_iteration) {for(unsigned int current_iteration=0;current_iteration<max_iteration;++current_iteration){//OPEN_CONNECT_CLOSE(current_iteration);}//OPEN_CONNECT_CLOSE(max_iteration);}
                • imk0tter
                  1 year (edited)
                  # C 0.24 KB | 0 0
                  1. void open_connect_close(unsigned int port);
                  2. void kernel(unsigned int max_iteration) {for(unsigned int current_iteration=0;current_iteration<max_iteration;++current_iteration){open_connect_close(current_iteration);}open_connect_close(max_iteration);}
          • imk0tter
            1 year (edited)
            # C++ 0.25 KB | 0 0
            1. void kernel(unsigned int max_iteration, void (*open_connect_close)(int)) { for (unsigned int current_iteration = 0; current_iteration < max_iteration; ++current_iteration) { (*open_connect_close)(current_iteration); } (*open_connect_close)(max_iteration); }
            • imk0tter
              1 year (edited)
              # C++ 0.24 KB | 0 0
              1. void kernel(int max_iteration, const void (*open_connect_close)(int)) { for (int current_iteration = 0; current_iteration < max_iteration; ++current_iteration) { (*open_connect_close)(current_iteration); } (*open_connect_close)(max_iteration); }
              • imk0tter
                1 year
                # C++ 0.27 KB | 0 0
                1. void kernel(unsigned int max_iteration, const void (*open_connect_close)(unsigned int)) { for (unsigned int current_iteration = 0; current_iteration < max_iteration; ++current_iteration) { (*open_connect_close)(current_iteration); } (*open_connect_close)(max_iteration); }
      • imk0tter
        1 year
        # C 0.14 KB | 0 0
        1. inline void port_shit(unsigned int x) {
        2.     //printf("OPEN: %i\n", x);
        3.     //printf("CONNECT: %i\n", x);
        4.     //printf("CLOSE: %i\n", x); }
  • imk0tter
    1 year
    # C 0.37 KB | 0 0
    1. inline void port_shit(unsigned int x) {
    2.     //printf("OPEN: %i\n", x);
    3.     //printf("CONNECT: %i\n", x);
    4.     //printf("CLOSE: %i\n", x);
    5. }
    6. void kernel(unsigned int max_iteration) {
    7.     for (unsigned int current_iteration = 0; current_iteration < max_iteration; ++current_iteration)
    8.     {
    9.         port_shit(current_iteration);
    10.     }
    11.     port_shit(max_iteration);
    12. }
    • imk0tter
      1 year
      # C 0.36 KB | 0 0
      1. inline void port_shit(unsigned int x) {
      2.     //printf("OPEN: %i\n", x);
      3.     //printf("CONNECT: %i\n", x);
      4.     //printf("CLOSE: %i\n", x);
      5. }
      6. void kernel(unsigned int max_iteration) {
      7.     for (unsigned int current_iteration = 0; current_iteration < max_iteration; ++current_iteration) {
      8.         port_shit(current_iteration);
      9.     }
      10.     port_shit(max_iteration);
      11. }
  • imk0tter
    186 days
    # C 0.33 KB | 0 0
    1. inline void port_shit(unsigned int x) {
    2.     //printf("OPEN: %i\n", x);
    3.     //printf("CONNECT: %i\n", x);
    4.     //printf("CLOSE: %i\n", x);
    5. }
    6. void kernel(unsigned int max_iteration) {
    7.     for (unsigned int current_iteration = 0; current_iteration < max_iteration; ++current_iteration) {
    8.         port_shit(current_iteration);
    9.     }
    10. }
Add Comment
Please, Sign In to add comment