interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / evidence / core-util / 2026-11-06 / wolfram.txt

40 lines · 2919 bytes Raw Blame History
1WolframLanguageEvaluator, host binary64 constant conversion
2
3Query:
4With[{ss={"6.93147180369123816490e-01","1.90821492927058770002e-10","1.44269504088896338700e+00","1.41421356237309504880e+00","709.78e+00","-745.2e+00","1.57079632673412561417e+00","6.07710050630396597660e-11","2.02226624871116645580e-21","8.47842766036889956997e-32","6.36619772367581382433e-01"}}, Table[With[{x=N[ToExpression[StringReplace[s,"e"->"`80*^"]],MachinePrecision]}, With[{d=RealDigits[Abs[x],2,53]}, {s,If[x<0,2^63,0]+(d[[2]]-1+1023)2^52+FromDigits[Rest[d[[1]]],2]}]],{s,ss}]]
5
6Result (source decimal -> binary64 bit pattern, expressed as an unsigned integer):
76.93147180369123816490e-01 -> 4604418534311723008
81.90821492927058770002e-10 -> 4461442080421002358
91.44269504088896338700e+00 -> 4609176140021203710
101.41421356237309504880e+00 -> 4609047870845172685
11709.78e+00 -> 4649454506724284170
12-745.2e+00 -> 13873138101193906586
131.57079632673412561417e+00 -> 4609753056924401664
146.07710050630396597660e-11 -> 4454258360616747008
152.02226624871116645580e-21 -> 4297306550709518336
168.47842766036889956997e-32 -> 4142048980368378305
176.36619772367581382433e-01 -> 4603909380684499075
18
19The first exploratory query used RealDigits on an arbitrary-precision decimal without rounding it to MachinePrecision first. That truncated SQRT2 to 4609047870845172684. The query above corrects the rounding before digit extraction; only the corrected value is in the final source.
20
21Query:
22FullSimplify[a 2^i == Mod[a 2^i, 2^64] + 2^64 Quotient[a 2^i, 2^64], Assumptions -> Element[{a,i},Integers] && 0<=a<2^64 && 0<=i<64]
23Result: True
24Use: the evaluator's split high/low multiplication identity. This is an algebraic check, not hardware qualification.
25
26Query:
27{FullSimplify[Mod[Mod[n,2^64],4]==Mod[n,4],Assumptions->Element[n,Integers]], Table[4609047870845172685+d,{d,{-1,0,1}}]}
28Result: {True, {4609047870845172684, 4609047870845172685, 4609047870845172686}}
29Wolfram also emitted MinValue::lpsub / MaxValue::lpsub diagnostics while simplifying the symbolic identity; the returned identity result was True.
30Use: negative-quadrant masking preserves the low two bits before a checked unsigned cast; adjacent SQRT2 threshold encodings are explicit regression boundaries.
31
32Query:
33FullSimplify[c+If[Mod[c,64]<56,56-Mod[c,64],120-Mod[c,64]]+8 == c+64-Mod[c,64]+If[Mod[c,64]>=56,64,0], Assumptions->Element[c,Integers]&&c>=0]
34Result: True (with a MaxValue::lpsub diagnostic).
35Use: finalization advances the public SHA context count exactly as the C padding updates do.
36
37Query:
38{Table[4649454506724284170+d,{d,{-1,0,1}}],Table[13873138101193906586+d,{d,{-1,0,1}}],Table[2^52+d,{d,{-1,0,1}}]}
39Result: {{4649454506724284169,4649454506724284170,4649454506724284171},{13873138101193906585,13873138101193906586,13873138101193906587},{4503599627370495,4503599627370496,4503599627370497}}
40Use: neighboring exponential threshold and normal/subnormal boundary encodings.