[Webkit-unassigned] [Bug 212477] Extended Color: ColorMatrix should support smaller matrices and be constexpr
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 28 10:37:32 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=212477
--- Comment #1 from Sam Weinig <sam at webkit.org> ---
Created attachment 400476
--> https://bugs.webkit.org/attachment.cgi?id=400476&action=review
proof of concept
Here is a proof-of-concept. Not sure if the actual matrix match is 100% right yet, but the code nicely compiles down to:
:-) samweinig:~> otool -Vx a.out
a.out:
(__TEXT,__text) section
_main:
0000000100000f4a pushq %rbp
0000000100000f4b movq %rsp, %rbp
0000000100000f4e leaq 0x53(%rip), %rdi ## literal pool for: "%f, %f, %f, %f\n"
0000000100000f55 movsd 0x3b(%rip), %xmm0
0000000100000f5d movsd 0x3b(%rip), %xmm3
0000000100000f65 movaps %xmm0, %xmm1
0000000100000f68 movaps %xmm0, %xmm2
0000000100000f6b movb $0x4, %al
0000000100000f6d callq 0x100000f76 ## symbol stub for: _printf
0000000100000f72 xorl %eax, %eax
0000000100000f74 popq %rbp
0000000100000f75 retq
when compiled with `clang++ -std=c++17 -Os matrix.cpp`
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200528/a06e1f25/attachment.htm>
More information about the webkit-unassigned
mailing list