It should be noted that:
- Basic blocks in SSA can be identified at 3 points:
- Start of the program
- Labels
- Branches
- Basic blocks are used in optimisation.
max(-x,-y) = -min(x,y) | |
min(-x,-y) = -max(x,y) | |
abs(x) = abs(-x) | |
abs(x) = max(x,-x) = -min(x,-x) | |
abs(x*a) = if (a >= 0) abs(x)*a | |
(a < 0) -abs(x)*a | |
// basically any commutative operation | |
min(x,y) + max(x,y) = x + y |
// Implementation in ES6 | |
function pagination(c, m) { | |
var current = c, | |
last = m, | |
delta = 2, | |
left = current - delta, | |
right = current + delta + 1, | |
range = [], | |
rangeWithDots = [], | |
l; |
In your effort of implementing standalone-ha with keycloak postgresql using JDBC_PING you will stumble upon many sites that define | |
the table structure for jgroupsping and the right one goes like this - | |
CREATE TABLE IF NOT EXISTS JGROUPSPING ( | |
own_addr varchar(200) NOT NULL, | |
cluster_name varchar(200) NOT NULL, | |
ping_data BYTEA, | |
constraint PK_JGROUPSPING PRIMARY KEY (own_addr, cluster_name) | |
); |
// This file should be compiled with DXC against shader model 6.6 | |
// Change the TARGET_API define here to either D3D or VK and switch compiler output formats (DXIL or SPIR-V) to match | |
#define D3D 1 | |
#define VK 2 | |
#define TARGET_API D3D | |
// Begin macro magic | |
#if TARGET_API == D3D | |
// No special root signature needed! |