This document has a more accessible location, here:
http://nickporcino.com/posts/last_mile_interchange.html
I'll maintain a copy here too, this is a nice place to support discussion.
| /* Copyright (c) 2015, Intel Corporation Redistribution and use in source and | |
| binary forms, with or without modification, are permitted provided that the | |
| following conditions are met: | |
| * Redistributions of source code must retain the above copyright notice, this | |
| list of conditions and the following disclaimer. | |
| * Redistributions in binary form must reproduce the above copyright notice, | |
| this list of conditions and the following disclaimer in the documentation | |
| and/or other materials provided with the distribution. | |
| * Neither the name of Intel Corporation nor the names of its contributors may |
This document has a more accessible location, here:
http://nickporcino.com/posts/last_mile_interchange.html
I'll maintain a copy here too, this is a nice place to support discussion.
| import lldb | |
| # FP16 summary | |
| def summary_FP16( valobj, internal_dict ): | |
| anon = valobj.GetChildAtIndex(1) | |
| m = anon.GetChildAtIndex(0).GetValueAsUnsigned() | |
| e = anon.GetChildAtIndex(1).GetValueAsUnsigned() | |
| s = anon.GetChildAtIndex(2).GetValueAsUnsigned() | |
| if e == 0: | |
| summary = "" if s == 0 else "-" |
| #include <stdio.h> | |
| #include <stdint.h> | |
| class A { | |
| public: | |
| virtual void doThing() { | |
| printf("I'm an A\n"); | |
| } | |
| }; |
| #define _CRT_SECURE_NO_DEPRECATE | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <Windows.h> | |
| // This allocates a "magic ring buffer" that is mapped twice, with the two | |
| // copies being contiguous in (virtual) memory. The advantage of this is | |
| // that this allows any function that expects data to be contiguous in | |
| // memory to read from (or write to) such a buffer. It also means that |