This commit is contained in:
Peter McGoron 2023-02-12 20:39:03 +00:00
parent 304e5d63c5
commit e537d927a1
2 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,4 @@
test: test_asm c_test/encode_decode c_test/creole
asm/libcreole.so: creole.c creole.h asm/libcreole.so: creole.c creole.h
$(CC) -Wall -fPIC -c creole.c -o c_test/creole.o $(CC) -Wall -fPIC -c creole.c -o c_test/creole.o
$(CC) -shared -o asm/libcreole.so c_test/creole.o $(CC) -shared -o asm/libcreole.so c_test/creole.o
@ -6,5 +7,7 @@ test_asm: asm/libcreole.so
cd asm && python3 test.py cd asm && python3 test.py
c_test/encode_decode: c_test/encode_decode.c creole.c creole.h c_test/encode_decode: c_test/encode_decode.c creole.c creole.h
$(CC) c_test/encode_decode.c -Wall -pedantic -std=c89 -g -fopenmp -o c_test/encode_decode $(CC) c_test/encode_decode.c -Wall -pedantic -std=c89 -g -fopenmp -o c_test/encode_decode
c_test/creole: c_test/creole.c creole.c creole.h greatest.h # c_test/encode_decode
c_test/creole: c_test/creole.c creole.c creole.h c_test/greatest.h
$(CC) -g c_test/creole.c -Wall -pedantic -std=c89 -o c_test/creole $(CC) -g c_test/creole.c -Wall -pedantic -std=c89 -o c_test/creole
c_test/creole

View File

@ -525,10 +525,10 @@ check_label(struct creole_env *env, creole_word label)
} }
enum argument_signed { enum argument_signed {
ALL_UNSIGNED = 0, // 0b00 ALL_UNSIGNED = 0, /* 0b00 */
FIRST_SIGNED = 2, // 0b10 FIRST_SIGNED = 2, /* 0b10 */
SECOND_SIGNED = 1, // 0b01 SECOND_SIGNED = 1, /* 0b01 */
ALL_SIGNED = 3 // 0b11 ALL_SIGNED = 3 /* 0b11 */
}; };
static enum argument_signed check_sign_bits(unsigned flags1, unsigned flags2) static enum argument_signed check_sign_bits(unsigned flags1, unsigned flags2)