mirror of
https://github.com/nicbarker/clay.git
synced 2025-05-17 15:58:05 +00:00
Compare commits
3 Commits
41bc5cb1f7
...
608f58ef1b
Author | SHA1 | Date | |
---|---|---|---|
|
608f58ef1b | ||
|
19a27b39f2 | ||
|
adc31f82e8 |
@ -4,7 +4,7 @@
|
|||||||
### Major Features
|
### Major Features
|
||||||
- Microsecond layout performance
|
- Microsecond layout performance
|
||||||
- Flex-box like layout model for complex, responsive layouts including text wrapping, scrolling containers and aspect ratio scaling
|
- Flex-box like layout model for complex, responsive layouts including text wrapping, scrolling containers and aspect ratio scaling
|
||||||
- Single ~2k LOC **clay.h** file with **zero** dependencies (including no standard library)
|
- Single ~4k LOC **clay.h** file with **zero** dependencies (including no standard library)
|
||||||
- Wasm support: compile with clang to a 15kb uncompressed **.wasm** file for use in the browser
|
- Wasm support: compile with clang to a 15kb uncompressed **.wasm** file for use in the browser
|
||||||
- Static arena based memory use with no malloc / free, and low total memory overhead (e.g. ~3.5mb for 8192 layout elements).
|
- Static arena based memory use with no malloc / free, and low total memory overhead (e.g. ~3.5mb for 8192 layout elements).
|
||||||
- React-like nested declarative syntax
|
- React-like nested declarative syntax
|
||||||
|
2
clay.h
2
clay.h
@ -1771,7 +1771,7 @@ bool Clay__MemCmp(const char *s1, const char *s2, int32_t length);
|
|||||||
uint8x16_t v2 = vld1q_u8((const uint8_t *)s2);
|
uint8x16_t v2 = vld1q_u8((const uint8_t *)s2);
|
||||||
|
|
||||||
// Compare vectors
|
// Compare vectors
|
||||||
if (vminvq_u32(vceqq_u8(v1, v2)) != 0xFFFFFFFF) { // If there's a difference
|
if (vminvq_u32(vreinterpretq_u32_u8(vceqq_u8(v1, v2))) != 0xFFFFFFFF) { // If there's a difference
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user