History log of /dpdk/lib/mldev/mldev_utils_scalar.c (Results 1 – 8 of 8)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v24.11, v24.11-rc4, v24.11-rc3, v24.11-rc2, v24.11-rc1, v24.07
# 65282e9f 31-Jul-2024 Srikanth Yalavarthi <syalavarthi@marvell.com>

mldev: introduce data type conversion functions

Introduced data type conversion functions with support for
user defined scale factor and zero-point. Updated library
functions to support asymmetric /

mldev: introduce data type conversion functions

Introduced data type conversion functions with support for
user defined scale factor and zero-point. Updated library
functions to support asymmetric / affine conversion for
integer types.

Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>

show more ...


Revision tags: v24.07-rc4, v24.07-rc3, v24.07-rc2, v24.07-rc1, v24.03, v24.03-rc4, v24.03-rc3, v24.03-rc2, v24.03-rc1
# 42f3dcd9 07-Jan-2024 Srikanth Yalavarthi <syalavarthi@marvell.com>

mldev: add 64-bit integers

Added support in mldev spec for 64-bit integer types. Added
routines to convert data from 64-bit integer type to float32_t
and vice-versa.

Signed-off-by: Srikanth Yalavar

mldev: add 64-bit integers

Added support in mldev spec for 64-bit integer types. Added
routines to convert data from 64-bit integer type to float32_t
and vice-versa.

Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>

show more ...


# 50513ae5 07-Jan-2024 Srikanth Yalavarthi <syalavarthi@marvell.com>

mldev: add conversion routines for 32-bit integers

Added routines to convert data from 32-bit integer type to
float32_t and vice-versa.

Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>


Revision tags: v23.11, v23.11-rc4, v23.11-rc3, v23.11-rc2, v23.11-rc1
# 3d4e27fd 25-Aug-2023 David Marchand <david.marchand@redhat.com>

use abstracted bit count functions

Now that DPDK provides such bit count functions, make use of them.

This patch was prepared with a "brutal" commandline:

$ old=__builtin_clzll; new=rte_clz64;
g

use abstracted bit count functions

Now that DPDK provides such bit count functions, make use of them.

This patch was prepared with a "brutal" commandline:

$ old=__builtin_clzll; new=rte_clz64;
git grep -lw $old :^lib/eal/include/rte_bitops.h |
xargs sed -i -e "s#\<$old\>#$new#g"
$ old=__builtin_clz; new=rte_clz32;
git grep -lw $old :^lib/eal/include/rte_bitops.h |
xargs sed -i -e "s#\<$old\>#$new#g"

$ old=__builtin_ctzll; new=rte_ctz64;
git grep -lw $old :^lib/eal/include/rte_bitops.h |
xargs sed -i -e "s#\<$old\>#$new#g"
$ old=__builtin_ctz; new=rte_ctz32;
git grep -lw $old :^lib/eal/include/rte_bitops.h |
xargs sed -i -e "s#\<$old\>#$new#g"

$ old=__builtin_popcountll; new=rte_popcount64;
git grep -lw $old :^lib/eal/include/rte_bitops.h |
xargs sed -i -e "s#\<$old\>#$new#g"
$ old=__builtin_popcount; new=rte_popcount32;
git grep -lw $old :^lib/eal/include/rte_bitops.h |
xargs sed -i -e "s#\<$old\>#$new#g"

Then inclusion of rte_bitops.h was added were necessary.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Reviewed-by: Long Li <longli@microsoft.com>

show more ...


Revision tags: v23.07, v23.07-rc4, v23.07-rc3, v23.07-rc2, v23.07-rc1, v23.03, v23.03-rc4, v23.03-rc3
# 538f6997 13-Mar-2023 Srikanth Yalavarthi <syalavarthi@marvell.com>

mldev: fix Arm build with NEON and GCC 4.8.5

Since bfloat16 intrinsics are not supported on all ARM platforms
that support NEON, bfloat16 routines are moved to separate files.
This would enable usin

mldev: fix Arm build with NEON and GCC 4.8.5

Since bfloat16 intrinsics are not supported on all ARM platforms
that support NEON, bfloat16 routines are moved to separate files.
This would enable using scalar implementation for bfloat16 on
unsupported ARM platforms.

Bugzilla ID: 1179
Fixes: fc54766b1612 ("mldev: add Arm NEON type conversion")

Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
Acked-by: Ruifeng Wang <ruifeng.wang@arm.com>

show more ...


# 8c9bfcb1 13-Mar-2023 Srikanth Yalavarthi <syalavarthi@marvell.com>

mldev: remove weak symbols use in type conversions

Drop use of weak symbols to select the type conversion
functions.
Select NEON implementation only on Aarch64 builds.
Enable windows build.

Fixes:

mldev: remove weak symbols use in type conversions

Drop use of weak symbols to select the type conversion
functions.
Select NEON implementation only on Aarch64 builds.
Enable windows build.

Fixes: 9637de38a2e3 ("mldev: add scalar type conversion")

Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>

show more ...


Revision tags: v23.03-rc2
# f71c5365 11-Mar-2023 Srikanth Yalavarthi <syalavarthi@marvell.com>

mldev: simplify scalar float16 type conversion

Fix identical code in different conditional branches in float32
to float16 conversion function. Issue reported in coverity scan.

Coverity issue: 38365

mldev: simplify scalar float16 type conversion

Fix identical code in different conditional branches in float32
to float16 conversion function. Issue reported in coverity scan.

Coverity issue: 383651
Fixes: 9637de38a2e3 ("mldev: add scalar type conversion")

Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>

show more ...


# 9637de38 09-Mar-2023 Srikanth Yalavarthi <syalavarthi@marvell.com>

mldev: add scalar type conversion

Added scalar implementations to support conversion of data types.
Support is enabled to handle int8, uint8, int16, uint16, float16,
float32 and bfloat16 types.

Sig

mldev: add scalar type conversion

Added scalar implementations to support conversion of data types.
Support is enabled to handle int8, uint8, int16, uint16, float16,
float32 and bfloat16 types.

Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>

show more ...