close

short是short int的縮寫
在neon中是相同的
type上有int8,int16,int32
而function上則是簡寫s(如:vst1_s8)
所以在這邊是一樣的東西

不過主要還是要看編譯器
我看到有些編譯器在定義時會有這樣的東西
typedef   unsigned   __arch_i8     u8;
typedef       signed   __arch_i8     s8;
typedef   unsigned   __arch_i16   u16;
typedef       signed   __arch_i16   s16;
typedef   unsigned   __arch_i32   u32;
typedef       signed   __arch_i32   s32;
所以一方面要看你的系統
二方面也要看你用的編譯器

有時候short 代表的是16bits
而        int    代表的是32bits

而上面又將int和short分開

----------------4/27-----------------------
用signed 8 bit讀入後long成16bits
其signed 讀入的負值 long出來再轉成unsigned,跟直接unsigned讀入long的值會不一樣喔

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 angledark0123 的頭像
    angledark0123

    CONY的世界

    angledark0123 發表在 痞客邦 留言(0) 人氣()