mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
[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:
parent
1beadbf871
commit
56d8bdee82
1 changed files with 1 additions and 0 deletions
|
@ -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)"
|
||||||
|
|
Loading…
Reference in a new issue