… | |
… | |
10 | 08:32:23 <b_jonas> probably not, because it would just account to making a union with a highly aligned type, |
10 | 08:32:23 <b_jonas> probably not, because it would just account to making a union with a highly aligned type, |
11 | which is something I can do on any compiler portably |
11 | which is something I can do on any compiler portably |
12 | |
12 | |
13 | TODO: #define ECB_IS_INTEGRAL(x) !((1 ? 1 : (x)) / 2) |
13 | TODO: #define ECB_IS_INTEGRAL(x) !((1 ? 1 : (x)) / 2) |
14 | #define ECB_IS_INTEGRAL(x) (sizeof ((x) + 1.0f) != sizeof((x) + 1ULL)) |
14 | #define ECB_IS_INTEGRAL(x) (sizeof ((x) + 1.0f) != sizeof((x) + 1ULL)) |
|
|
15 | |
|
|
16 | TODO: __builtin_powi |
15 | |
17 | |
16 | TODO: https://gustedt.wordpress.com/2010/06/08/detect-empty-macro-arguments/ |
18 | TODO: https://gustedt.wordpress.com/2010/06/08/detect-empty-macro-arguments/ |
17 | |
19 | |
18 | implement is_constant for c11: https://gustedt.wordpress.com/2013/08/22/testing-compile-time-constness-and-null-pointers-with-c11s-_generic/ |
20 | implement is_constant for c11: https://gustedt.wordpress.com/2013/08/22/testing-compile-time-constness-and-null-pointers-with-c11s-_generic/ |
19 | |
21 | |
… | |
… | |
66 | - apply ctz/ld patch for msc by Zsbán Ambrus. |
68 | - apply ctz/ld patch for msc by Zsbán Ambrus. |
67 | - ECB_PTRSIZE erroneously was 8 on most 32bit systems ( |
69 | - ECB_PTRSIZE erroneously was 8 on most 32bit systems ( |
68 | found by Zsbán Ambrus). |
70 | found by Zsbán Ambrus). |
69 | - improved compiletime detection of endianness, also, allow |
71 | - improved compiletime detection of endianness, also, allow |
70 | runtime detection to indicate other-than-big/little endianness. |
72 | runtime detection to indicate other-than-big/little endianness. |
|
|
73 | - no memory barrier neded on arm < 6. |
71 | |
74 | |
72 | 0x00010005 |
75 | 0x00010005 |
73 | - improve ecb_binary16_to_float. |
76 | - improve ecb_binary16_to_float. |
74 | - add ecb_float_to_binary16. |
77 | - add ecb_float_to_binary16. |
75 | - add ecb_binary16_to_binary32 and ecb_binary32_to_binary16 pair. |
78 | - add ecb_binary16_to_binary32 and ecb_binary32_to_binary16 pair. |