feat: update gpu to Linux_SDK_V1.2.1

This version update involves a lot of content, so the previous version
has been deleted and the new version has been re-merged into the kernel.

The configuration file for the GPU driver originates from a previous
version.

Signed-off-by: Mingzheng Xing <xingmingzheng@iscas.ac.cn>
This commit is contained in:
Mingzheng Xing
2023-08-30 21:19:50 +08:00
committed by Han Gao
parent 807db9d981
commit f72e7cd077
250 changed files with 10635 additions and 7697 deletions

View File

@@ -270,7 +270,7 @@ static INLINE uint32_t __const_function FloorLog2(uint32_t n)
{
uint32_t ui32log2 = 0;
while (n >>= 1)
while ((n >>= 1) != 0U)
{
ui32log2++;
}
@@ -287,7 +287,7 @@ static INLINE uint32_t __const_function FloorLog2_64(uint64_t n)
{
uint32_t ui32log2 = 0;
while (n >>= 1)
while ((n >>= 1) != 0U)
{
ui32log2++;
}
@@ -311,7 +311,7 @@ static INLINE uint32_t __const_function CeilLog2(uint32_t n)
n--; /* Handle powers of 2 */
while (n)
while (n != 0U)
{
ui32log2++;
n >>= 1;
@@ -336,7 +336,7 @@ static INLINE uint32_t __const_function CeilLog2_64(uint64_t n)
n--; /* Handle powers of 2 */
while (n)
while (n != 0U)
{
ui32log2++;
n >>= 1;