[gamecode] Add a fixme about using gcc's vec convert

It might produce better code than the way I'm currently doing it.
This commit is contained in:
Bill Currie 2022-01-17 10:32:19 +09:00
parent 1beadbf871
commit 56d8bdee82

View file

@ -52,6 +52,7 @@ def case_str(width, src_type, dst_type):
case = (width << 6) | (src_type << 3) | (dst_type) case = (width << 6) | (src_type << 3) | (dst_type)
return f"case {case:04o}:" return f"case {case:04o}:"
#FIXME look into using gcc's __builtin_convertvector
def cast_str(width, src_type, dst_type): def cast_str(width, src_type, dst_type):
if width & 1: if width & 1:
return f"(pr_{vec_types[dst_type]}{width+1}_t)" return f"(pr_{vec_types[dst_type]}{width+1}_t)"