This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Largest-Triangle-Three-Buckets algorithm | |
// SEE | |
// https://github.com/sveinn-steinarsson/flot-downsample | |
// https://www.base.is/flot/ | |
// c++ port by [email protected] | |
template<typename T> | |
inline void DownsampleLTTB(const T* data_x, const T* data_y, size_t data_length, | |
T* sampled_x, T* sampled_y, size_t threshold) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- binutils-2.24.orig/bfd/bfd-in2.h | |
+++ binutils-2.24/bfd/bfd-in2.h | |
@@ -1938,6 +1938,12 @@ enum bfd_architecture | |
#define bfd_mach_mipsisa64 64 | |
#define bfd_mach_mipsisa64r2 65 | |
#define bfd_mach_mips_micromips 96 | |
+#define bfd_mach_mips4180 4180 | |
+#define bfd_mach_mips4181 4181 | |
+#define bfd_mach_mips4281 4281 | |
+#define bfd_mach_mips5181 5181 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void DumpHex(const void* data, size_t size) { | |
char ascii[17]; | |
size_t i, j; | |
ascii[16] = '\0'; | |
for (i = 0; i < size; ++i) { | |
printf("%02X ", ((unsigned char*)data)[i]); | |
if (((unsigned char*)data)[i] >= ' ' && ((unsigned char*)data)[i] <= '~') { | |
ascii[i % 16] = ((unsigned char*)data)[i]; |