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 <stdio.h> | |
#include <assert.h> | |
int c[4+3][3*2]; | |
void f(int * const n, int * const m, int (**v)[*m * 2]) | |
{ | |
assert(&(c[*n][*m]) == &((*v)[*n][*m])); | |
} |
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
template <typename T> | |
struct f // This is ::f | |
{ | |
}; | |
namespace B | |
{ | |
template <typename T> | |
struct f // This is B::f | |
{ |
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> | |
#include <assert.h> | |
#include <math.h> | |
__global__ void f(float sum, int B, float *z, float *z2) | |
{ | |
*z = sum / B; | |
*z2 = sum / (float)B; | |
} |
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
MODULE a | |
IMPLICIT NONE | |
INTEGER(4), PUBLIC :: x1 | |
INTEGER(4), PUBLIC :: x2 | |
END MODULE a | |
MODULE a2 | |
IMPLICIT NONE | |
INTEGER(4), PUBLIC :: x1 | |
INTEGER(4), PUBLIC :: x2 |
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
#ifndef Q_NUMBERS_HPP | |
#define Q_NUMBERS_HPP | |
// Simple implementation of Q numbers | |
// There may be bugs. Use at your own risk | |
/* | |
See https://en.wikipedia.org/wiki/Q_%28number_format%29 | |
*/ |
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
.model large | |
.386 | |
; Constants per comoditat | |
CERT equ 0FFh | |
FALS equ 00h | |
; Convencio de valors del sentit |
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
#!/bin/bash -ex | |
export STAGEDIR=$(pwd) | |
export INSTALLDIR=$(pwd)/install | |
export BUILDDIR=$(pwd)/build | |
export BUILDFLANGDIR=$(pwd)/build-flang | |
mkdir -p ${BUILDDIR} | |
mkdir -p ${BUILDFLANGDIR} |
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
#!/bin/bash | |
TOOL="$1" | |
MY_PATH=$(dirname $(realpath $0)) | |
IWYUC_FLAGS="\ | |
-Xiwyu --no_comments \ | |
-isystem /home/roger/soft/llvm-4.0/install/bin/../lib/clang/4.0.0/include/ \ | |
-isystem /usr/lib/gcc/x86_64-linux-gnu/6/include" |
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 <unordered_map> | |
struct RecMap | |
{ | |
using Map = std::unordered_map<int, RecMap*>; | |
Map M; | |
}; | |
int main(int argc, char* argv[]) | |
{ |
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
AQ (Antarctica) -> QA (Qatar) | |
AU (Australia) -> UA (Ukraine) | |
BG (Bulgaria) -> GB (United Kingdom) | |
BL (St. Barthélemy) -> LB (Lebanon) | |
BS (Bahamas) -> SB (Solomon Islands) | |
CA (Canada) -> AC (Ascension Island) | |
CI (Côte d'Ivoire) -> IC (Canary Islands) | |
CL (Chile) -> LC (St. Lucia) | |
CV (Cape Verde) -> VC (St. Vincent & Grenadines) | |
EA (Ceuta & Melilla) -> AE (United Arab Emirates) |
OlderNewer