fix under- and overflow
fix under- and overflow

ritsu1228/eigen,toastedcrumpets/eigen,ritsu1228/eigen,ritsu1228/eigen,ritsu1228/eigen,pasuka/eigen,TSC21/Eigen,ROCmSoftwarePlatform/hipeigen,ROCmSoftwarePlatform/hipeigen,TSC21/Eigen,ROCmSoftwarePlatform/hipeigen,toastedcrumpets/eigen,pasuka/eigen,pasuka/eigen,TSC21/Eigen,ROCmSoftwarePlatform/hipeigen,TSC21/Eigen,toastedcrumpets/eigen,pasuka/eigen,ritsu1228/eigen,Zefz/eigen,Zefz/eigen,pasuka/eigen,toastedcrumpets/eigen,Zefz/eigen,Zefz/eigen