diff options
author | Jukka Ojanen <jukka.ojanen@linkotec.net> | 2014-11-17 10:14:06 +0200 |
---|---|---|
committer | Jukka Ojanen <jukka.ojanen@linkotec.net> | 2014-11-17 10:14:06 +0200 |
commit | b3ff6d450356851f6760883bfd9f501fdcfefa61 (patch) | |
tree | 479c27b6d85487f6a93e90afe00798b1ce8f2f00 | |
parent | 8d314a602dbc5f354ef9365e3789b6e8cc34b27b (diff) | |
download | ffts-b3ff6d450356851f6760883bfd9f501fdcfefa61.zip ffts-b3ff6d450356851f6760883bfd9f501fdcfefa61.tar.gz |
Add comments to SSE constants
-rw-r--r-- | src/codegen_sse.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/codegen_sse.h b/src/codegen_sse.h index b7d0850..739335f 100644 --- a/src/codegen_sse.h +++ b/src/codegen_sse.h @@ -42,18 +42,28 @@ #ifdef SSE_DEFINE_CONSTANTS static const FFTS_ALIGN(16) unsigned int sse_constants[20] = { + /* 0.0, -0.0, 0.0, -0.0 */ 0x00000000, 0x80000000, 0x00000000, 0x80000000, + /* 0.707, 0.707, 0.707, 0.707 */ 0x3f3504f3, 0x3f3504f3, 0x3f3504f3, 0x3f3504f3, + /* -0.707, 0.707, -0.707, 0.707 */ 0xbf3504f3, 0x3f3504f3, 0xbf3504f3, 0x3f3504f3, + /* 1.0, 1.0, 0.707, 0.707 */ 0x3f800000, 0x3f800000, 0x3f3504f3, 0x3f3504f3, + /* 0.0, 0.0, -.707, 0.707 */ 0x00000000, 0x00000000, 0xbf3504f3, 0x3f3504f3 }; static const FFTS_ALIGN(16) unsigned int sse_constants_inv[20] = { + /* -0.0, 0.0, -0.0, 0.0 */ 0x80000000, 0x00000000, 0x80000000, 0x00000000, + /* 0.707, 0.707, 0.707, 0.707 */ 0x3f3504f3, 0x3f3504f3, 0x3f3504f3, 0x3f3504f3, + /* 0.707, -0.707, 0.707, -0.707 */ 0x3f3504f3, 0xbf3504f3, 0x3f3504f3, 0xbf3504f3, + /* 1.0, 1.0, 0.707, 0.707 */ 0x3f800000, 0x3f800000, 0x3f3504f3, 0x3f3504f3, + /* 0.0, 0.0, 0.707, -0.707 */ 0x00000000, 0x00000000, 0x3f3504f3, 0xbf3504f3 }; #else |