1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
|
/* Generated by Nim Compiler v0.16.0 */
/* (c) 2017 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64
#include "nimbase.h"
#undef linux
N_NIMCALL(NI64, HEX7CHEX2DHEX7C_ob65GDP1gLUz8UD9bFXYfng)(NI64 a0, NI64 b0) {
NI64 result0;
{ result0 = (NI64)0;
result0 = (NI64)((NU64)(a0) - (NU64)(b0));
{
NIM_BOOL LOC3;
LOC3 = (NIM_BOOL)0;
LOC3 = (IL64(0) <= (NI64)(result0 ^ a0));
if (LOC3) goto LA4;
LOC3 = (IL64(0) <= (NI64)(result0 ^ (NI64)((NU64) ~(b0))));
LA4: ;
if (!LOC3) goto LA5;
goto BeforeRet;
}
LA5: ;
{
if (!(IL64(0) < b0)) goto LA9;
result0 = (IL64(-9223372036854775807) - IL64(1));
}
goto LA7;
LA9: ;
{
result0 = IL64(9223372036854775807);
}
LA7: ;
}BeforeRet: ;
return result0;
}
N_NIMCALL(NI64, HEX7CHEX2BHEX7C_ob65GDP1gLUz8UD9bFXYfng_2)(NI64 a0, NI64 b0) {
NI64 result0;
{ result0 = (NI64)0;
result0 = (NI64)((NU64)(a0) + (NU64)(b0));
{
NIM_BOOL LOC3;
LOC3 = (NIM_BOOL)0;
LOC3 = (IL64(0) <= (NI64)(result0 ^ a0));
if (LOC3) goto LA4;
LOC3 = (IL64(0) <= (NI64)(result0 ^ b0));
LA4: ;
if (!LOC3) goto LA5;
goto BeforeRet;
}
LA5: ;
{
NIM_BOOL LOC9;
LOC9 = (NIM_BOOL)0;
LOC9 = (a0 < IL64(0));
if (LOC9) goto LA10;
LOC9 = (b0 < IL64(0));
LA10: ;
if (!LOC9) goto LA11;
result0 = (IL64(-9223372036854775807) - IL64(1));
}
goto LA7;
LA11: ;
{
result0 = IL64(9223372036854775807);
}
LA7: ;
}BeforeRet: ;
return result0;
}
N_NIMCALL(NI64, HEX7CHEX2AHEX7C_ob65GDP1gLUz8UD9bFXYfng_3)(NI64 a0, NI64 b0) {
NI64 result0;
NF resasfloat0;
NF floatprod0;
{ result0 = (NI64)0;
resasfloat0 = (NF)0;
floatprod0 = (NF)0;
result0 = (NI64)((NU64)(a0) * (NU64)(b0));
floatprod0 = ((double) (a0));
floatprod0 = ((NF)(floatprod0) * (NF)(((double) (b0))));
resasfloat0 = ((double) (result0));
{
if (!(resasfloat0 == floatprod0)) goto LA3;
goto BeforeRet;
}
LA3: ;
{
if (!(((NF)(3.2000000000000000e+01) * (NF)((((NF)(resasfloat0) - (NF)(floatprod0)) > 0? (((NF)(resasfloat0) - (NF)(floatprod0))) : -(((NF)(resasfloat0) - (NF)(floatprod0)))))) <= (floatprod0 > 0? (floatprod0) : -(floatprod0)))) goto LA7;
goto BeforeRet;
}
LA7: ;
{
if (!(0.0 <= floatprod0)) goto LA11;
result0 = IL64(9223372036854775807);
}
goto LA9;
LA11: ;
{
result0 = (IL64(-9223372036854775807) - IL64(1));
}
LA9: ;
}BeforeRet: ;
return result0;
}
N_NIMCALL(NI64, HEX7CdivHEX7C_ob65GDP1gLUz8UD9bFXYfng_4)(NI64 a0, NI64 b0) {
NI64 result0;
result0 = (NI64)0;
{
if (!(b0 == IL64(0))) goto LA3;
result0 = a0;
}
goto LA1;
LA3: ;
{
NIM_BOOL LOC6;
LOC6 = (NIM_BOOL)0;
LOC6 = (a0 == (IL64(-9223372036854775807) - IL64(1)));
if (!(LOC6)) goto LA7;
LOC6 = (b0 == IL64(-1));
LA7: ;
if (!LOC6) goto LA8;
result0 = IL64(9223372036854775807);
}
goto LA1;
LA8: ;
{
result0 = (NI64)(a0 / b0);
}
LA1: ;
return result0;
}
N_NIMCALL(NI64, HEX7CmodHEX7C_ob65GDP1gLUz8UD9bFXYfng_5)(NI64 a0, NI64 b0) {
NI64 result0;
result0 = (NI64)0;
{
if (!(b0 == IL64(0))) goto LA3;
result0 = a0;
}
goto LA1;
LA3: ;
{
result0 = (NI64)(a0 % b0);
}
LA1: ;
return result0;
}
N_NIMCALL(NI64, HEX7CabsHEX7C_7goHQbEFKco1IgR9aUHGQ3g)(NI64 a0) {
NI64 result0;
result0 = (NI64)0;
{
if (!!((a0 == (IL64(-9223372036854775807) - IL64(1))))) goto LA3;
{
if (!(IL64(0) <= a0)) goto LA7;
result0 = a0;
}
goto LA5;
LA7: ;
{
result0 = -(a0);
}
LA5: ;
}
goto LA1;
LA3: ;
{
result0 = (IL64(-9223372036854775807) - IL64(1));
}
LA1: ;
return result0;
}
NIM_EXTERNC N_NOINLINE(void, compiler_saturateInit000)(void) {
}
NIM_EXTERNC N_NOINLINE(void, compiler_saturateDatInit000)(void) {
}
|