JeffyCN / mirrors

Mirrors of Rockchip BSP repositories, only contains yocto related ones to keep it thin since the yocto would try to clone the whole repository.
Other
13 stars 5 forks source link

linux-rga-im2d分支平台重复写的代码有点冗余 #7

Closed jiale-gdyd closed 1 year ago

jiale-gdyd commented 1 year ago

很多这样的代码:

if defined(arm64) || defined(aarch64)

xxxxxxx

else

yyyyyyy

endif

这其实就是几个参数的类型不一致而已,而重复写了多次这样的接口,不如改成这样:

if defined(arm64) || defined(aarch64)

typedef unsigned long arch_type_t;

else

typedef unsigned int arch_type_t;

endif

然后利用arch_type_t去合并那几个变量的类型

JeffyCN commented 1 year ago

sorry, i don't maintain librga, please contact the author or committers.