Author: Chris Lattner
This file contains 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
diff --git a/CallLogDrawer_LogIter.pm b/CallLogDrawer_LogIter.pm | |
index 5af3272..2de1d3d 100644 | |
--- a/CallLogDrawer_LogIter.pm | |
+++ b/CallLogDrawer_LogIter.pm | |
@@ -19,7 +19,7 @@ sub new { | |
open($fh, "<", $infpath) or die "Failed to open $infpath: $!"; | |
} | |
my ($ana_in, $ana_out); | |
- my $pid = open2($ana_out, $ana_in, "LANG=c addr2line -fps -e $bin"); | |
+ my $pid = open2($ana_in, $ana_out, "LANG=c atos -o $bin"); |
This file contains 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
/* | |
* This component is built using `gatsby-image` to automatically serve optimized | |
* images with lazy loading and reduced file sizes. The image is loaded using a | |
* `StaticQuery`, which allows us to load the image from directly within this | |
* component, rather than having to pass the image data down from pages. | |
* | |
* For more information, see the docs: | |
* - `gatsby-image`: https://gatsby.app/gatsby-image | |
* - `StaticQuery`: https://gatsby.app/staticquery | |
*/ |
This file contains 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
SCRIPT /usr/local/Cellar/macvim/8.0-137_2/MacVim.app/Contents/Resources/vim/runtime/syntax/cpp.vim | |
Sourced 1 time | |
Total time: 0.004365 | |
Self time: 0.000759 | |
count total (s) self (s) | |
" Vim syntax file | |
" Language: C++ | |
" Current Maintainer: vim-jp (https://github.com/vim-jp/vim-cpp) | |
" Previous Maintainer: Ken Shan <[email protected]> |
This file contains 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 <iostream> | |
template <int I> | |
void div( char(*)[I % 2 == 0] = 0 ) { | |
std::cout << "even!!!" << std::endl; | |
} | |
template <int I> | |
void div( char(*)[I % 2 == 1] = 0 ) { | |
std::cout << "odd!!!" << std::endl; |
This file contains 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
Homebrew build logs for macvim on macOS 10.12.6 | |
Build date: 2017-07-19 23:31:23 |
This file contains 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 <netinet/in.h> | |
#include <stdio.h> | |
int main(int argc, const char *argv[]) { | |
int i = 1093173256; | |
int k = htonl(i); | |
printf("%d %d\n", i, k); | |
return 0; | |
} |
This file contains 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 <cassert> | |
#include <iostream> | |
#include <vector> | |
#include <type_traits> | |
// http://www.embedded.com/electronics-blogs/programmer-s-toolbox/4219659/Integer-Square-Roots | |
uint32_t isqrt0(uint32_t n) { | |
uint32_t delta = 3; | |
for (uint32_t square = 1; square <= n; square += delta) |
This file contains 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 <fstream> | |
int main(int argc, char const *argv[]) | |
{ | |
std::ifstream input(argv[1], std::ios::binary); | |
std::ofstream output(argv[2], std::ios::binary); | |
output << input.rdbuf(); | |
input.close(); |
NewerOlder