]> foleosoft.com Git - QAnsel.git/commitdiff
Thu Mar 21 08:42:32 AM EDT 2024
authormiha-q <>
Thu, 21 Mar 2024 12:42:32 +0000 (08:42 -0400)
committermiha-q <>
Thu, 21 Mar 2024 12:42:32 +0000 (08:42 -0400)
src/bytecode.h
src/complex.h
src/context.h
src/display.h
src/hardware.h
src/kernel.h
src/main.c
src/openqasm.h
src/qansel.h

index f562277507ec69e23ba59f0df1662e34782f4d85..3b211baa9ed884ce3c94e00011f5a677fc4b3e55 100644 (file)
@@ -142,4 +142,4 @@ void qansel_reorder(QAnselContext* ctx, unsigned char* program, int programSize)
 void qansel_run(QAnselContext* ctx, unsigned char* program, int programSize, int qubitCount, int bitCount, unsigned char* outputBitVector);
 int qanselExecuteBytecode(unsigned char* buff, int sizeofbuff, QAnselContext* ctx);
 
-#endif
\ No newline at end of file
+#endif
index 6ba525ed1b33d196ef2f1c3ce6efaacaf852d5c1..dd51cea560bdd1495ee95c75338e11891244ff85 100644 (file)
@@ -98,4 +98,4 @@ void cpx_mtx_knk_metal(float* ptrR, float* ptrA, float* ptrB, int rowsA, int col
 //     the standard knk_metal() function. 
 void cpx_mtx_knk_metal_2x2(float* ptrR, float* ptrA, float* ptrB, int rowsA, int colsA, int rowsB, int colsB);
 
-#endif
\ No newline at end of file
+#endif
index a80670ff81f3123ec7432d2f1aa5612af82efd43..ad4dc3514e05bcca713d46579985cdc1c6c63e18 100644 (file)
@@ -23,4 +23,4 @@ int qanselContextValidate(QAnselContext* ctx);
 int qanselContextBegin(QAnselContext* ctx);
 int qanselContextEnd(QAnselContext* ctx);
 
-#endif
\ No newline at end of file
+#endif
index 9c555addfd6b5d2ccfa0c982e31edc05fce05169..d45e5c80b51c1251c411051840e9a3c25576d83b 100644 (file)
@@ -8,4 +8,4 @@ void DrawThickLine(SDL_Renderer* renderer, int x1, int y1, int x2, int y2, int t
 #endif
 int display(cpx_mtx_t* stateVector, uint8_t qubitCount, int delay);
 
-#endif
\ No newline at end of file
+#endif
index d0cf3078af23fa7c43a50d0a21bab79881f502be..70041e607edc00ba4dd6fcbaa457d1f0cb27a725 100644 (file)
@@ -17,4 +17,4 @@ unsigned long int qansel_get_time();
 int qansel_hardware_rand_supported();
 unsigned char qansel_hardware_rand();
 
-#endif
\ No newline at end of file
+#endif
index f71b799c26617cef060ed4bd877ee4d8f565dc98..c933638578462b28d023bf98f3b7074a2e080c08 100644 (file)
@@ -45,4 +45,4 @@ void kernel_knk_2x2
        const int get_global_id_0
 );
 
-#endif
\ No newline at end of file
+#endif
index ef9624241171cd045c99e8a9c3bc7bd39493fc8d..8b83e54ee4ec874ddfc440f765696a96859fd189 100644 (file)
@@ -30,7 +30,7 @@ void display_help()
        exit(0);
 }
 
-void main(int argc, char** argv)
+int main(int argc, char** argv)
 {
        QAnselContext ctx = {0};
 
@@ -76,6 +76,5 @@ void main(int argc, char** argv)
                free(bytecode);
        }
        qanselContextEnd(&ctx);
-       return;
-
+       return 0;
 }
\ No newline at end of file
index 55f4673589b1f23c9387256141b404d0fcf7fc38..7bd666f3b5d9aa7a896fb81fcf909d22d2d699c2 100644 (file)
@@ -15,4 +15,4 @@ int qansel_process_chunk(int index, char* chunk, int line, regmatch_t* regmatche
 int qansel_process_chunks(char** chunks, int* associatedLines, int count, unsigned char** retBinary, int* retSize, QAnselContext* ctx, int samplingshots);
 int qanselBuildFromSource(char* source, unsigned char** binary, int* binarySize, QAnselContext* ctx);
 
-#endif
\ No newline at end of file
+#endif
index eca34d66a5148ab19727ad7ccc961cf6c7b60309..5ea2e5b72a60ad7d6dd7946b2a2ad924687ed12d 100644 (file)
@@ -58,4 +58,4 @@
 #define QANSEL_ALL_CLASSIC 0x3F
 #define QANSEL_ALL 0xFF
 
-#endif
\ No newline at end of file
+#endif