Skip to content
Commit af8bc614 authored by Viet-Hoa Do's avatar Viet-Hoa Do 😅 Committed by Suhail M
Browse files

Use memcpy instead of union for BF16-FP32 conversion



* Writing to one union member and reading the other union member
  is considered undefined behavior, therefore we need to avoid it.

Signed-off-by: Viet-Hoa Do's avatarViet-Hoa Do <viet-hoa.do@arm.com>

Approved-by: Emil Ohlsson's avatarEmil Ohlsson <emil.ohlsson@arm.com>
parent 547c2011
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment