mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/json] Functions defined in headers should be static inline
If `load_uint8x16_4` has an external linkage, it is defined in both `generator` and `parser` extension libraries. This duplicate symbol causes a linker error when `--with-static-linked-ext` is given, on some platforms. https://github.com/ruby/json/commit/020693b17a
This commit is contained in:
parent
abafb662ea
commit
f5aee2480a
@ -103,7 +103,8 @@ static inline FORCE_INLINE int string_scan_simd_neon(const char **ptr, const cha
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint8x16x4_t load_uint8x16_4(const unsigned char *table) {
|
||||
static inline uint8x16x4_t load_uint8x16_4(const unsigned char *table)
|
||||
{
|
||||
uint8x16x4_t tab;
|
||||
tab.val[0] = vld1q_u8(table);
|
||||
tab.val[1] = vld1q_u8(table+16);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user