次のようにそれぞれ符号付きおよび符号なしのクラスが別々にあります。
-
ap_fixed<W,I>
(符号付き) -
ap_ufixed<W,I>
(符号なし)
C/C++ の typedef
文を使用すると、ユーザー定義型を作成できます。
#include "ap_fixed.h" // use ap_[u]fixed<> types
typedef ap_ufixed<128,32> uint128_t; // 128-bit user defined type,
// 32 integer bits