add packed just in case

This commit is contained in:
Henri Vasserman 2023-05-19 01:12:57 +03:00
parent 558c672c93
commit 772e3fbe12
No known key found for this signature in database
GPG key ID: 2995FC0F58B1A986

View file

@ -17,13 +17,13 @@ typedef uchar uint8_t;
typedef int int32_t; typedef int int32_t;
typedef uint uint32_t; typedef uint uint32_t;
struct block_q4_0 struct __attribute__ ((packed)) block_q4_0
{ {
float d; float d;
uint8_t qs[16]; /* QK4_0 / 2 */ uint8_t qs[16]; /* QK4_0 / 2 */
}; };
struct block_q4_1 struct __attribute__ ((packed)) block_q4_1
{ {
float d; float d;
float m; float m;
@ -37,7 +37,7 @@ struct __attribute__ ((packed)) block_q5_0
uint8_t qs[16]; /* QK5_0 / 2 */ uint8_t qs[16]; /* QK5_0 / 2 */
}; };
struct block_q5_1 struct __attribute__ ((packed)) block_q5_1
{ {
half d; half d;
half m; half m;
@ -45,7 +45,7 @@ struct block_q5_1
uint8_t qs[16]; /* QK5_1 / 2 */ uint8_t qs[16]; /* QK5_1 / 2 */
}; };
struct block_q8_0 struct __attribute__ ((packed)) block_q8_0
{ {
float d; float d;
int8_t qs[32]; /* QK8_0 */ int8_t qs[32]; /* QK8_0 */