Skip to content
Discussion options

You must be logged in to vote

Yes, like you said, this is an abstraction layer for using x86 SSE intrinsics. I am only using the 4 floats at a time operations.
This is used for various math and vector operations.
This makes using these operations easier to use than writing out raw _mm_mul_ps(a, b) calls everywhere throughout the code.

It creates 4 reusable types and functions (operations) to use with those types. They are:

  1. f32_4x 4 element vector with 32-bit floating point values or 32-bit integers, either are supported.
  2. v3_4x - this is traditional vector with 3 scalars, it stores 4 of them batched together for SIMD registers and operations.
  3. v4_4x - Just like the v3_4x but for vectors with 4 scalar properties.

There…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by btgvesta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants