Bug 142 - Vector Ops needed (DOT, Cross, Dist, normalise, CORDIC, S/LERP etc)
Summary: Vector Ops needed (DOT, Cross, Dist, normalise, CORDIC, S/LERP etc)
Status: CONFIRMED
Alias: None
Product: Libre-SOC's first SoC
Classification: Unclassified
Component: Specification (show other bugs)
Version: unspecified
Hardware: Other Linux
: --- enhancement
Assignee: Luke Kenneth Casson Leighton
URL:
Depends on: 139
Blocks: 53
  Show dependency treegraph
 
Reported: 2019-10-05 06:17 BST by Luke Kenneth Casson Leighton
Modified: 2020-03-04 18:15 GMT (History)
1 user (show)

See Also:
NLnet milestone: NLnet.2019.02
total budget (EUR) for completion of task and all subtasks: 0
budget (EUR) for completion of task (excludes budget allocated to subtasks): 0
parent task for budget allocation:
child tasks for budget allocation:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Kenneth Casson Leighton 2019-10-05 06:17:59 BST
https://libre-riscv.org/simple_v_extension/vector_ops/

A Vector ops subextension to SimpleV is needed which is characterised by either dependence on nonstandard SUBVL and/or inter-element data interactions.

(Swizzle also falls into this category)
Comment 2 Luke Kenneth Casson Leighton 2019-10-05 08:28:06 BST
Wondering how (whether) to add vec2 cross product and if vec4 cross product exists.

Found this:

vec2D a, b;
...
double z = a.x * b.y - b.x * a.y;
return z;
Comment 3 Luke Kenneth Casson Leighton 2019-10-05 08:31:25 BST
https://stackoverflow.com/questions/10759206/how-to-calculate-vec4-cross-product-with-glm

Answer seems to be no on vec4 cross product because it is called wedge product and is 2 planes.
Comment 4 Luke Kenneth Casson Leighton 2019-10-05 10:41:35 BST
http://lists.libre-riscv.org/pipermail/libre-riscv-dev/2019-October/002956.html
Should VLEN and normalise be macro ops or microcode?