# floating-point

Floating-point arithmetic is a computing method involving numeric formats and arithmetic operations, including binary and decimal formats, in computer programming environments.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Errpedia: Is Your Exact $k$-NN Vector Search Really Exact?

DevFeed: [Errpedia: Is Your Exact $k$-NN Vector Search Really Exact?](<https://devfeed.tech/articles/errpedia-is-your-exact-k-nn-vector-search-really-exact-140631.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.22474>)

Author: Yinuo Deng, Ying Zhang, Hanchen Wang, Wenjie Zhang

Published: 2026-11-18T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [floating-point](<https://devfeed.tech/topics/floating-point.md>), [Ground truth / benchmark quality](<https://devfeed.tech/topics/ground-truth-benchmark-quality.md>), [test data](<https://devfeed.tech/topics/test-data.md>), [ann](<https://devfeed.tech/topics/ann.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [database](<https://devfeed.tech/tags/database.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [error](<https://devfeed.tech/tags/error.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [vector-search](<https://devfeed.tech/tags/vector-search.md>)

### AI overview

Errpedia tests numerical correctness in exact k-nearest-neighbor vector search, where floating-point rounding and overflow can produce mathematically wrong results. It contains 1,616 queries across 21 error categories, with ground truth verified using exact rational arithmetic. In tests of 20 library and database configurations, every configuration returned an incorrect top-10 result set on at least one applicable query. Reported failures include misranking nearly equidistant vectors, one library omitting all 10 exact matches for a query, and several systems returning fewer than k neighbors. The authors present Errpedia as a reproducible benchmark for checking implementations.

### Source excerpt

arXiv:2611.22474v1 Announce Type: new Abstract: Exact $k$-nearest-neighbor ($k$-NN) vector search is a common feature of vector libraries and database systems. It serves applications that require exact results and provides the ground truth for evaluating approximate search. However, floating-point rounding and overflow can cause an exact search to return mathematically incorrect top-$k$ result sets. These errors can go unnoticed and affect downstream tasks that rely on exact results. We present Errpedia, a purpose-built dataset for testing the numerical correctness of exact vector search. Errpedia contains 1,616 queries across 21 error categories, with ground truth independently verified using exact rational arithmetic. We evaluate 20 widely used library and database configurations and find that every tested configuration returns mathematically incorrect top-10 result sets on at least 1 applicable query. Failures include misranking nearly equidistant vectors and returning incomplete results: 1 library omits all 10 exact matches to a query, and several systems return fewer than $k$ neighbors. We release Errpedia as a reproducible benchmark for developers and researchers to test their implementations. The dataset is publicly available at https://github.com/dynos01/errpedia.

## Activation and Floating-Point Quantization

DevFeed: [Activation and Floating-Point Quantization](<https://devfeed.tech/articles/activation-and-floating-point-quantization-140615.md>)

Original publisher: [Read original article](<https://machinelearningmastery.com/activation-kv-cache-and-floating-point-quantization/>)

Author: Adrian Tam

Published: 2026-11-17T19:06:49Z

Content type: article

Language: en

Sources: [MachineLearningMastery.com](<https://devfeed.tech/sources/machinelearningmastery-com.md>)

Topics: [quantization](<https://devfeed.tech/topics/quantization.md>), [Post-training optimization](<https://devfeed.tech/topics/post-training-optimization.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [vllm](<https://devfeed.tech/topics/vllm.md>)

Tags: [activation](<https://devfeed.tech/tags/activation.md>), [amd](<https://devfeed.tech/tags/amd.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [inference](<https://devfeed.tech/tags/inference.md>), [inference-from-transformer-models](<https://devfeed.tech/tags/inference-from-transformer-models.md>), [quantization](<https://devfeed.tech/tags/quantization.md>), [smoothquant](<https://devfeed.tech/tags/smoothquant.md>)

### AI overview

Activation quantization must account for input-dependent ranges and outliers: static scales are fast but can clip values beyond calibration ranges, while dynamic per-token INT8 scales adapt at runtime at the cost of measurement work. SmoothQuant redistributes some activation outlier difficulty into static weights to prepare both for W8A8; its mathematical rescaling is exact before quantization. FP8 uses explicit scaling and nonuniform value spacing, with format and scale choices depending on hardware and inference software. LLM Compressor can produce reusable INT8 W8A8 or FP8 checkpoints for vLLM, with activations scaled and quantized during inference. Neither format guarantees a speedup: performance depends on workload, hardware, and supported kernels, so the text recommends benchmarking accuracy and throughput and profiling prefill and decode.

### Source excerpt

Overview This post is divided into three parts; they are: - Why Activations Are Hard to Quantize - W8A8 Inference and SmoothQuant - Floating-Point Quantization Why Activations Are Hard to Quantize

## Providing Accuracy Guarantees for the Fixed-Point Emulation of Matrix Multiplication

DevFeed: [Providing Accuracy Guarantees for the Fixed-Point Emulation of Matrix Multiplication](<https://devfeed.tech/articles/providing-accuracy-guarantees-for-the-fixed-point-emulation-of-matrix-multiplication-136980.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.19008>)

Author: Cole Brower, Peter Caday, John Gunnels

Published: 2026-11-17T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [floating-point](<https://devfeed.tech/topics/floating-point.md>)

Tags: [adversarial](<https://devfeed.tech/tags/adversarial.md>), [analyze](<https://devfeed.tech/tags/analyze.md>), [arithmetic](<https://devfeed.tech/tags/arithmetic.md>), [automatically](<https://devfeed.tech/tags/automatically.md>), [bits](<https://devfeed.tech/tags/bits.md>), [capacity](<https://devfeed.tech/tags/capacity.md>), [cases](<https://devfeed.tech/tags/cases.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-ms](<https://devfeed.tech/tags/cs-ms.md>), [cublas](<https://devfeed.tech/tags/cublas.md>), [emulation](<https://devfeed.tech/tags/emulation.md>), [error](<https://devfeed.tech/tags/error.md>), [fast](<https://devfeed.tech/tags/fast.md>), [fixed](<https://devfeed.tech/tags/fixed.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [guarantees](<https://devfeed.tech/tags/guarantees.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [input](<https://devfeed.tech/tags/input.md>), [matrix](<https://devfeed.tech/tags/matrix.md>), [nvidia](<https://devfeed.tech/tags/nvidia.md>), [nvidia-b200](<https://devfeed.tech/tags/nvidia-b200.md>), [point](<https://devfeed.tech/tags/point.md>)

### AI overview

The authors derive a rule for choosing mantissa bits in fixed-point emulation so a dot product retains the classical worst-case error bound of the floating-point operation it replaces. The rule uses 53 bits plus an input's exponent-span capacity and a small constant; they approximate that capacity with low-precision GEMM. In a developer build of cuBLAS on an NVIDIA B200, each implemented rule earned grade A on Test 2c of "Grading the BLAS" across tested sizes and exponent ranges, falling back to double precision at the widest ranges. The abstract also reports the bound holding in exact arithmetic for tested adversarial and random inputs.

### Source excerpt

arXiv:2611.19008v1 Announce Type: cross Abstract: Fixed-point methods such as Ozaki-II emulate double-precision matrix multiplication (GEMM) on fast low-precision hardware. Software that chooses the mantissa bit count automatically is numerically safe when the emulated product keeps the error guarantee of the floating-point GEMM it replaces. We analyze the worst-case and average-case error of fixed-point and floating-point dot products, define exponent span capacities that determine the extra mantissa bits an input requires, and approximate them with a low-precision GEMM. We prove that 53 bits plus such a capacity and a small constant preserve the classical worst-case error bound for a floating-point dot product, and we demonstrate this guarantee in software on several test cases. In a developer build of cuBLAS on an NVIDIA B200, each implemented bit-count rule earns grade~A on Test~2c of ``Grading the BLAS'' at every size and exponent range tested, falling back to double precision at the widest ranges; in exact arithmetic, the bound holds on every adversarial and random input tested.

## The State Is Not the Bottleneck: A Paged-State Gated-DeltaNet Tile on a Tri-Mode Multicast Mesh, Bit-Exact from RTL to Silicon

DevFeed: [The State Is Not the Bottleneck: A Paged-State Gated-DeltaNet Tile on a Tri-Mode Multicast Mesh, Bit-Exact from RTL to Silicon](<https://devfeed.tech/articles/the-state-is-not-the-bottleneck-a-paged-state-gated-deltanet-tile-on-a-tri-mode-multicast-mesh-bit-exact-from-rtl-to-silicon-135901.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.18422>)

Author: Cong Xu, Ravi Sankar

Published: 2026-11-16T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>)

Tags: [about](<https://devfeed.tech/tags/about.md>), [abstract](<https://devfeed.tech/tags/abstract.md>), [agilex](<https://devfeed.tech/tags/agilex.md>), [all](<https://devfeed.tech/tags/all.md>), [arithmetic](<https://devfeed.tech/tags/arithmetic.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [attention](<https://devfeed.tech/tags/attention.md>), [block](<https://devfeed.tech/tags/block.md>), [board](<https://devfeed.tech/tags/board.md>), [bottleneck](<https://devfeed.tech/tags/bottleneck.md>), [builds](<https://devfeed.tech/tags/builds.md>), [cache](<https://devfeed.tech/tags/cache.md>), [can](<https://devfeed.tech/tags/can.md>), [chip](<https://devfeed.tech/tags/chip.md>), [cs-ar](<https://devfeed.tech/tags/cs-ar.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-ro](<https://devfeed.tech/tags/cs-ro.md>), [gated-deltanet](<https://devfeed.tech/tags/gated-deltanet.md>), [mesh](<https://devfeed.tech/tags/mesh.md>), [multicast](<https://devfeed.tech/tags/multicast.md>), [rtl](<https://devfeed.tech/tags/rtl.md>), [silicon](<https://devfeed.tech/tags/silicon.md>), [state](<https://devfeed.tech/tags/state.md>)

### AI overview

A paged recurrent state does not dominate decoding in the tested edge-FPGA design: weight delivery is the main performance limit. The tile implements one layer of a custom 369-million-parameter hybrid Gated DeltaNet model on an Agilex 5. Its 6.2 MiB state exceeds the FPGA's 0.87 MiB of block memory; paging adds 26.0 MB of traffic per token, up to 11.2% of the calculated total. At 75 MHz with synthetic weights, a token takes 11.15 ms: weight matrix-vector products account for about 62% and the state phase, including paging, 13%. Fixed-point hardware matches a fixed-point reference bit for bit; simulation checks the state logic across all 18 recurrent layers, and six board builds pass 30 runs of 64 tokens plus two runs of 1,024 tokens. These results indicate paging is practical for this model and memory interface.

### Source excerpt

arXiv:2611.18422v1 Announce Type: cross Abstract: Linear-attention language models replace a growing key-value cache with a recurrent state of fixed size. On an edge FPGA, this state can exceed the on-chip memory and must be paged to external memory. This paper asks whether such paging dominates the cost of decoding (generating tokens). We built a hardware tile that computes one complete layer of a custom 369-million-parameter hybrid Gated DeltaNet model on an Agilex 5 FPGA and pages its recurrent state. The model state needs 6.2 MiB, whereas the device has 0.87 MiB of block memory. Paging adds 26.0 MB of memory traffic per decoded token, at most 11.2 percent of the calculated total. On the board at 75 MHz, with synthetic weights, one token takes 11.15 ms in this layer. The matrix-vector products with the weights take about 62 percent of this time and the state phase, including the paging, 13 percent. The tile is one node of a multicast mesh of tri-mode processing elements. We measure the error of the fixed-point arithmetic against floating point and check that the hardware agrees bit for bit with a fixed-point reference. In simulation, the state logic agrees with the reference on all 18 recurrent layers. On the board, six builds pass all 30 runs of 64 tokens and two runs of 1,024 tokens. For this model and memory interface, the delivery of the weights limits the decoding performance, and the recurrent state does not. State paging is therefore practical for such a model on an edge FPGA.

## How to Do a Binary Search in Python

DevFeed: [How to Do a Binary Search in Python](<https://devfeed.tech/articles/how-to-do-a-binary-search-in-python-134046.md>)

Original publisher: [Read original article](<https://realpython.com/binary-search-python/>)

Author: Bartosz Zaczyński

Published: 2026-11-14T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [binary-search](<https://devfeed.tech/tags/binary-search.md>), [implement](<https://devfeed.tech/tags/implement.md>), [module](<https://devfeed.tech/tags/module.md>), [python](<https://devfeed.tech/tags/python.md>), [search](<https://devfeed.tech/tags/search.md>)

### AI overview

Binary search can locate values in a sorted list with logarithmic comparisons by repeatedly halving the remaining range; the excerpt estimates at most about 20 comparisons for one million items. Python's `bisect` module finds insertion positions and maintains sorted lists, but the list must already be sorted. For duplicates, `bisect_left()` and `bisect_right()` expose the matching range; searches by key can use precomputed keys. The tutorial also builds iterative and recursive implementations, discussing boundary updates, missing values, duplicate results, slicing overhead in recursion, and floating-point comparisons. It recommends using library code unless implementation is needed for learning or constraints. Hash-based `dict` lookup can be faster and independent of item position, but the described IMDb benchmark uses about 0.5 GB more memory and requires keeping the index consistent; dictionary keys must be hashable. The excerpt includes benchmark context and complexity discussion, but does not provide the full tutorial.

### Source excerpt

Use the bisect module to do a binary search in Python, then implement this classic algorithm yourself, both iteratively and recursively.

## SoScale: Second-Order Scale Search for FP4 Quantization

DevFeed: [SoScale: Second-Order Scale Search for FP4 Quantization](<https://devfeed.tech/articles/soscale-second-order-scale-search-for-fp4-quantization-132234.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.16426>)

Author: Pengxiang Zhao, Xing Li, Hui-Ling Zhen, Weizhe Lin, Xianzhi Yu, Zhenhua Dong

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [quantization](<https://devfeed.tech/topics/quantization.md>), [NVFP4](<https://devfeed.tech/topics/nvfp4.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [LLM Techniques](<https://devfeed.tech/topics/llm-techniques.md>), [Post-training optimization](<https://devfeed.tech/topics/post-training-optimization.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>)

Tags: [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [fp4](<https://devfeed.tech/tags/fp4.md>), [gptq](<https://devfeed.tech/tags/gptq.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [layer](<https://devfeed.tech/tags/layer.md>), [mxfp4](<https://devfeed.tech/tags/mxfp4.md>), [nvfp4](<https://devfeed.tech/tags/nvfp4.md>), [order](<https://devfeed.tech/tags/order.md>), [quantization](<https://devfeed.tech/tags/quantization.md>), [qwen3](<https://devfeed.tech/tags/qwen3.md>), [scale](<https://devfeed.tech/tags/scale.md>), [scaling](<https://devfeed.tech/tags/scaling.md>), [search](<https://devfeed.tech/tags/search.md>), [weight](<https://devfeed.tech/tags/weight.md>)

### AI overview

SoScale aims to reduce accuracy loss in hierarchical FP4 quantization by choosing weight scale codes for their effect on layer outputs, rather than minimizing local element-wise reconstruction error. It searches hardware-valid codes with a Hessian-aware layer reconstruction objective and pairs the search with GPTQ-style error recovery. The abstract reports consistently lower downstream quantization degradation across Qwen3 models using MXFP4, NVFP4, and HiF4; it provides no quantitative results or detail on evaluation conditions.

### Source excerpt

arXiv:2611.16426v1 Announce Type: cross Abstract: Low-bit quantization reduces the memory footprint and inference cost of large language models (LLMs), yet accurate FP4 quantization remains challenging. Practical formats such as MXFP4, NVFP4, and HiF4 pair a 4-bit floating-point payload with block-wise or hierarchical scale codes, making accuracy highly sensitive to how each local distribution is scaled. Default maximum-absolute-value scaling preserves dynamic range, but can spend scarce FP4 levels on rarely occupied outlier regions and leave dense tensor values poorly resolved. Existing scale-search methods minimize local element-wise reconstruction error, optimizing tensor fidelity rather than layer-output fidelity. We propose SoScale, a second-order weight scale-code search method for hierarchical FP4 quantization. SoScale searches hardware-valid scale codes under a Hessian-aware layer reconstruction objective and couples this search with GPTQ-style error recovery, selecting scales by their impact on layer outputs. Across Qwen3 models, SoScale consistently reduces downstream quantization degradation under MXFP4, NVFP4, and HiF4.

## Introduction To FP8 Formats: Part 1

DevFeed: [Introduction To FP8 Formats: Part 1](<https://devfeed.tech/articles/introduction-to-fp8-formats-part-1-130166.md>)

Original publisher: [Read original article](<https://semiengineering.com/introduction-to-fp8-formats-part-1/>)

Author: Siyu Mou

Published: 2026-11-12T08:03:25Z

Content type: article

Language: en

Sources: [Semiconductor Engineering](<https://devfeed.tech/sources/semiconductor-engineering.md>)

Topics: [floating-point](<https://devfeed.tech/topics/floating-point.md>), [quantization](<https://devfeed.tech/topics/quantization.md>)

Tags: [8-bit-floating-point](<https://devfeed.tech/tags/8-bit-floating-point.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [arm](<https://devfeed.tech/tags/arm.md>), [arm-v9](<https://devfeed.tech/tags/arm-v9.md>), [at-the-core](<https://devfeed.tech/tags/at-the-core.md>), [bandwidth](<https://devfeed.tech/tags/bandwidth.md>), [bf16](<https://devfeed.tech/tags/bf16.md>), [blogs-lphp](<https://devfeed.tech/tags/blogs-lphp.md>), [compute](<https://devfeed.tech/tags/compute.md>), [data-center](<https://devfeed.tech/tags/data-center.md>), [data-types](<https://devfeed.tech/tags/data-types.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [edge](<https://devfeed.tech/tags/edge.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [formats](<https://devfeed.tech/tags/formats.md>), [fp16](<https://devfeed.tech/tags/fp16.md>), [fp8](<https://devfeed.tech/tags/fp8.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [h100](<https://devfeed.tech/tags/h100.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [hopper](<https://devfeed.tech/tags/hopper.md>), [low-power-high-performance](<https://devfeed.tech/tags/low-power-high-performance.md>), [number-formats](<https://devfeed.tech/tags/number-formats.md>)

### AI overview

FP8 trades precision and dynamic range to improve ML throughput in data centers and reduce model size, memory use, and bandwidth on edge devices. The described interchange specification offers E4M3, which favors precision for activations and weights, and E5M2, which offers more exponent range for gradients. Arm's FPMR lets each source operand select its FP8 format and applies scaling; the text says hardware can handle its writes more efficiently than frequent FPCR updates. Arm extensions add FP8 instructions across Advanced SIMD, SVE, and SME. These use FP8 inputs with wider FP16 or FP32 accumulation to retain bandwidth benefits while supporting numerical stability. The text also identifies NVIDIA Hopper H100 support and major framework deployment.

### Source excerpt

The rationale behind 8-bit floating-point data formats, their ecosystem momentum, and hardware support. The post Introduction To FP8 Formats: Part 1 appeared first on Semiconductor Engineering.

## Deterministic, Reproducible Inference in Exact Integer Arithmetic, and Verifiable Distributed Inference as Its Consequence

DevFeed: [Deterministic, Reproducible Inference in Exact Integer Arithmetic, and Verifiable Distributed Inference as Its Consequence](<https://devfeed.tech/articles/deterministic-reproducible-inference-in-exact-integer-arithmetic-and-verifiable-distributed-inference-as-its-consequence-127809.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.13730>)

Author: Sayed Amir Karim (Pelloran Inc.)

Published: 2026-11-11T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [quantization](<https://devfeed.tech/topics/quantization.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>)

Tags: [arithmetic](<https://devfeed.tech/tags/arithmetic.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [distributed-inference](<https://devfeed.tech/tags/distributed-inference.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [inference](<https://devfeed.tech/tags/inference.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [mixture-of-experts](<https://devfeed.tech/tags/mixture-of-experts.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [reproducibility](<https://devfeed.tech/tags/reproducibility.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [verification](<https://devfeed.tech/tags/verification.md>)

### AI overview

The open-source tritify runtime aims to make model inference reproducible by executing the full forward pass in exact integer arithmetic; floating point is used only for offline quantization and reference verification. The abstract reports bit-identical outputs across runs, CPU instruction-set architectures, CPU/GPU, and networked machines. It also reports that integer inference matched the float reference's decisions on tested models and inputs, with numeric exceptions measured; tests included per-layer fidelity through 16 layers of OLMoE-1B-7B and a 106-billion-parameter MoE. As a distributed example, GLM-4.5-Air generated an answer across three machines, each unable to hold its 427 GB of integer codes in RAM, matching a single-host output. An open scalar oracle can re-derive output bytes, but protection against a dishonest server remains future work. The work does not claim per-device speed-ups, bit equality of floating-valued intermediates, or confidentiality.

### Source excerpt

arXiv:2611.13730v1 Announce Type: cross Abstract: Optimized floating-point inference is not reproducible across environments: the same model on different hardware, compilers or thread counts can produce different bits. We present tritify, an open-source runtime that executes the forward pass of real models -- decoder-only language models, Mixture-of-Experts decoders, and the Segment Anything 2.1 image/video stack -- with the entire run-time path in exact integer arithmetic; floating point is confined to offline quantization and the float reference used for verification. We make three separate claims and verify each. (1) Cross-hardware reproducibility: the integer path produces bit-identical output run to run, across CPU instruction-set architectures, and across CPU/GPU, carried by a reproducing SHA-256 of the output. (2) Decision fidelity: the integer path reproduces the float reference's decision on the models and inputs tested, with the numeric exceptions measured; per-layer fidelity through sixteen layers of OLMoE-1B-7B and of a 106-billion-parameter MoE shows no fidelity cliff. (3) Location independence: a model's computation can be split across instruction sets, CPU and GPU, and networked machines with zero effect on the output bits. GLM-4.5-Air (106,852,251,264 parameters, 427 GB of integer codes) generated its answer across three machines, none of which can hold its integer codes in RAM, bit-identically to a single-host reference. The consequence is verifiable distributed inference: an untrusted server or a fleet of devices runs the model while an open scalar oracle re-derives the exact bytes; a guarantee against a dishonest server is future work. We do not claim a per-device speed-up, bit-equality of floating-valued intermediates, or confidentiality. Code: https://github.com/pelloran-inc/tritify

## Telling your number parser what to expect

DevFeed: [Telling your number parser what to expect](<https://devfeed.tech/articles/telling-your-number-parser-what-to-expect-126410.md>)

Original publisher: [Read original article](<https://lemire.me/blog/2026/11/10/telling-your-number-parser-what-to-expect/>)

Author: Daniel Lemire

Published: 2026-11-10T12:44:09Z

Content type: article

Language: en

Sources: [Daniel Lemire](<https://devfeed.tech/sources/daniel-lemire.md>)

Topics: [Parser](<https://devfeed.tech/topics/parser.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>)

Tags: [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [fast](<https://devfeed.tech/tags/fast.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [gcc](<https://devfeed.tech/tags/gcc.md>), [library](<https://devfeed.tech/tags/library.md>), [number](<https://devfeed.tech/tags/number.md>)

### AI overview

fast_float adds three optional performance hints that let callers describe their input: `unpredictable_sign` removes a branch for randomly ordered signs; `short_numbers` handles standalone numbers of at most eight characters with bitwise operations; and `assume_round_to_nearest` skips checking the rounding mode. They trade extra instructions for fewer branch mispredictions, so the best choice depends on data and processor. In the reported tests, random-sign short prices benefited from sign and rounding hints on Intel (73 to 105 million numbers/s) and all three hints on Apple (153 to 345 million). Longer random-sign balances benefited from sign and rounding hints; varied positive sensor readings benefited from `short_numbers`. For regular, consistently shaped prices, Intel was fastest without hints, while Apple still benefited from `short_numbers`. The rounding hint can produce wrong results if the program changes rounding mode despite the promise. The hints also work with `from_chars_advanced` and `integer_times_pow10`; the excerpt says they are in a pull request.

### Source excerpt

Our fast_float library parses numbers such as -731.51 into binary floating-point values. It is part of GCC's C++ standard library, among others. It is fast: often a few nanoseconds per number. Parsing a number means making decisions. Is there a sign? How many digits are there? Where is the decimal point? Is the processor rounding ... Continue reading Telling your number parser what to expect

## Concurrent Use of FP32 and FP64 Computing Units on GPUs and Mixed-Precision Placement in WENO Reconstruction

DevFeed: [Concurrent Use of FP32 and FP64 Computing Units on GPUs and Mixed-Precision Placement in WENO Reconstruction](<https://devfeed.tech/articles/concurrent-use-of-fp32-and-fp64-computing-units-on-gpus-and-mixed-precision-placement-in-weno-reconstruction-123699.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.09651>)

Author: Jun Hatayama, Daichi Mukunoki, Yusuke Onishi, Atsushi Sekimoto, Toshinori Kouchi

Published: 2026-11-09T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [GPU optimization](<https://devfeed.tech/topics/gpu-optimization.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>), [RTX PRO](<https://devfeed.tech/topics/rtx-pro.md>)

Tags: [computing](<https://devfeed.tech/tags/computing.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [gpus](<https://devfeed.tech/tags/gpus.md>), [performance](<https://devfeed.tech/tags/performance.md>), [precision](<https://devfeed.tech/tags/precision.md>), [scientific-computing](<https://devfeed.tech/tags/scientific-computing.md>)

### AI overview

Concurrent FP32 and native FP64 kernels can use otherwise idle GPU units to raise throughput on some GPUs, but the benefit varies by architecture. In microbenchmarks, overlap improved throughput on A100; on GH200 and GB200 it did not. RTX PRO 6000 Blackwell Max-Q exceeded FFMA throughput, and exceeded double-float (DF) emulation only when DF issue density was reduced. For WENO-Z reconstruction, placing nonlinear weights in FP32 and candidate polynomials in FP64 (W32P64) produced substantial overlap on A100 but little on the other tested GPUs. This placement also failed to achieve design accuracy for WENO7 and WENO9 in a one-dimensional entropy-wave test. Full-reconstruction DF emulation came close to design accuracy for WENO5, WENO7, and WENO9 on tested grids and ran 2.51-3.94x faster than FP64 on RTX 6000 Blackwell. In a two-dimensional Euler vortex test, W32P64's WENO5 error at n=256 was 1.26x the FP64 error and 1/104 of the all-FP32 error.

### Source excerpt

arXiv:2611.09651v1 Announce Type: new Abstract: Scientific computing often requires FP64 arithmetic, although FP64 performance is limited on NVIDIA GPUs. Double-float (DF) emulation, which represents a value using two FP32 values with about 48 bits of significand, outperforms native FP64 where FP64 units are limited. On the other hand, mixed-precision strategies offload to FP32 the operations that do not determine accuracy. In both approaches, the native FP64 units remain idle during FP32 instruction execution. We investigated whether this idle resource can be recovered on A100, GH200, GB200, and RTX PRO 6000 Blackwell Max-Q. A microbenchmark shows that co-resident FP32 and native-FP64 kernels exceed the throughput of the faster kernel alone on A100 but not on GH200 and GB200; on RTX 6000 Blackwell, they do so against FFMA but, against DF emulation, only when the issue density of the DF kernel is reduced. We then tested whether this gain carries over to computing the WENO-Z reconstruction with the nonlinear weights in FP32 and the candidate polynomials in native FP64 (W32P64). We observe substantial overlap on A100, whereas GH200, GB200, and RTX 6000 Blackwell show little overlap. Importantly, the fastest placement does not always preserve the design accuracy of WENO-Z: for a one-dimensional entropy wave problem, W32P64 fails to achieve the design order of accuracy for WENO7 and WENO9. In contrast, DF emulation of the entire reconstruction comes close to it on the grids tested for WENO5, WENO7, and WENO9 while delivering a $2.51-3.94 \times$ speedup over FP64 on RTX 6000 Blackwell. For WENO5 on the two-dimensional Euler vortex problem the W32P64 error at $n=256$ is $1.26 \times$ that of FP64 and 1/104 of that of the all-FP32 reconstruction.

## Floating-Point Precision and Its Effects to Model Inference

DevFeed: [Floating-Point Precision and Its Effects to Model Inference](<https://devfeed.tech/articles/floating-point-precision-and-its-effects-to-model-inference-122209.md>)

Original publisher: [Read original article](<https://machinelearningmastery.com/floating-point-precision/>)

Author: Adrian Tam

Published: 2026-11-07T13:29:33Z

Content type: article

Language: en

Sources: [MachineLearningMastery.com](<https://devfeed.tech/sources/machinelearningmastery-com.md>)

Topics: [floating-point](<https://devfeed.tech/topics/floating-point.md>), [Inference](<https://devfeed.tech/topics/inference.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>), [Transformers](<https://devfeed.tech/topics/transformers.md>), [quantization](<https://devfeed.tech/topics/quantization.md>), [NVFP4](<https://devfeed.tech/topics/nvfp4.md>)

Tags: [floating-point](<https://devfeed.tech/tags/floating-point.md>), [formats](<https://devfeed.tech/tags/formats.md>), [inference-from-transformer-models](<https://devfeed.tech/tags/inference-from-transformer-models.md>), [model-inference](<https://devfeed.tech/tags/model-inference.md>), [precision](<https://devfeed.tech/tags/precision.md>)

### AI overview

Precision changes can speed inference and reduce memory use, but the best format depends on numerical quality and the target hardware's kernels. FP16 offers more significand precision than BF16, while BF16's wider range can avoid overflow in transformer activations. FP8 and FP4 save more storage but rely on format-specific scaling, calibration, and runtime support; casting to a lower dtype is distinct from scaled quantization. Mixed precision can keep matrix multiplications in FP16 or BF16 while using FP32 for sensitive operations such as reductions and normalization, though extra casts or unsupported kernels can erase speed gains. Evaluate memory, prefill and decode performance at realistic workloads, and quality on representative inputs; record operand, accumulation, and output precision where possible. Weight savings affect total memory and speed only to the extent that weights drive memory use or are the bottleneck.

### Source excerpt

Overview This post is divided into five parts; they are: - How Floating-Point Numbers Work - Common Precision Formats - Loading a Model at a Different Precision - Mixed Precision and Sensitive Operations - Measuring the Result How Floating-Point Numbers Work A floating-point number contains a sign, an exponent, and a significand (often called the mantissa).

## Grokking or Glitching? How Low-Precision Drives Slingshot Loss Spikes

DevFeed: [Grokking or Glitching? How Low-Precision Drives Slingshot Loss Spikes](<https://devfeed.tech/articles/grokking-or-glitching-how-low-precision-drives-slingshot-loss-spikes-120412.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2605.06152>)

Author: Hanqing Liu, Jianjun Cao, Yuanze Li, Zijian Zhou

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [floating-point](<https://devfeed.tech/topics/floating-point.md>), [Deep neural networks](<https://devfeed.tech/topics/deep-neural-networks.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [absorption](<https://devfeed.tech/tags/absorption.md>), [backpropagation](<https://devfeed.tech/tags/backpropagation.md>), [constraint](<https://devfeed.tech/tags/constraint.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [deep-neural-networks](<https://devfeed.tech/tags/deep-neural-networks.md>), [feature](<https://devfeed.tech/tags/feature.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [growth](<https://devfeed.tech/tags/growth.md>), [inflation](<https://devfeed.tech/tags/inflation.md>), [math-oc](<https://devfeed.tech/tags/math-oc.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [precision](<https://devfeed.tech/tags/precision.md>), [stat-ml](<https://devfeed.tech/tags/stat-ml.md>), [training](<https://devfeed.tech/tags/training.md>)

### AI overview

The paper attributes Slingshot loss spikes to finite-precision arithmetic. In high-confidence training, the correct-class logit can exceed an absorption-error threshold, causing its gradient to round to zero while incorrect-class gradients remain nonzero. This breaks the gradients' zero-sum constraint and creates classifier-update drift. The authors call the resulting positive feedback with features Numerical Feature Inflation (NFI): classifier and feature means grow exponentially, norms rise, gradients later reappear, and a loss spike can follow. NFI is not equivalent to a visible spike; partial absorption may drive rapid parameter-norm growth without an observable loss spike.

### Source excerpt

arXiv:2605.06152v5 Announce Type: replace Abstract: Deep neural networks exhibit periodic loss spikes during unregularized long-term training, a phenomenon known as the "Slingshot Mechanism." Existing work usually attributes this to intrinsic optimization dynamics, but its triggering mechanism remains unclear. This paper proves that this phenomenon is a result of floating-point arithmetic precision limits. As training enters a high-confidence stage, the difference between the correct-class logit and the other logits may exceed the absorption-error threshold. Then during backpropagation, the gradient of the correct class is rounded exactly to zero, while the gradients of the incorrect classes remain nonzero. This breaks the zero-sum constraint of gradients across classes and introduces a systematic drift in the parameter update of the classifier layer. We prove that this drift forms a positive feedback loop with the feature, causing the global classifier mean and the global feature mean to grow exponentially. We call this mechanism Numerical Feature Inflation (NFI). This mechanism explains the rapid norm growth before a Slingshot spike, the subsequent reappearance of gradients, and the resulting loss spike. We further show that NFI is not equivalent to an observed loss spike: in more practical tasks, partial absorption may not produce visible spikes, but it can still break the zero-sum constraint and drive rapid growth of parameter norms. Our results reinterpret Slingshot as a numerical dynamic of finite-precision training, and provide a testable explanation for abnormal parameter growth and logit divergence in late-stage training.

## Easy Multi-Precision Acceleration via Vectorization

DevFeed: [Easy Multi-Precision Acceleration via Vectorization](<https://devfeed.tech/articles/easy-multi-precision-acceleration-via-vectorization-119096.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.05558>)

Author: Chansup Byun, Piotr Luszczek, Jeremy Kepner, LaToya Anderson, William Arcand, David Bestor, William Bergeron, Alex Bonn, Daniel Burrill, Vijay Gadepally, Michael Houle, Matthew Hubbell, Hayden Jananth

Published: 2026-11-05T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [vectorization techniques](<https://devfeed.tech/topics/vectorization-techniques.md>), [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>)

Tags: [acceleration](<https://devfeed.tech/tags/acceleration.md>), [accelerators](<https://devfeed.tech/tags/accelerators.md>), [bandwidth](<https://devfeed.tech/tags/bandwidth.md>), [complex](<https://devfeed.tech/tags/complex.md>), [compute](<https://devfeed.tech/tags/compute.md>), [computing](<https://devfeed.tech/tags/computing.md>), [convolution](<https://devfeed.tech/tags/convolution.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-pf](<https://devfeed.tech/tags/cs-pf.md>), [fft](<https://devfeed.tech/tags/fft.md>), [half](<https://devfeed.tech/tags/half.md>), [matrix](<https://devfeed.tech/tags/matrix.md>), [memory](<https://devfeed.tech/tags/memory.md>), [memory-bandwidth](<https://devfeed.tech/tags/memory-bandwidth.md>), [performance](<https://devfeed.tech/tags/performance.md>), [portable](<https://devfeed.tech/tags/portable.md>), [precision](<https://devfeed.tech/tags/precision.md>), [productivity](<https://devfeed.tech/tags/productivity.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [range](<https://devfeed.tech/tags/range.md>), [vectorization](<https://devfeed.tech/tags/vectorization.md>)

### AI overview

The paper evaluates simple vectorized coding that expresses operations as high-level matrix mathematics across hardware spanning nearly a decade. Its examples cover memory bandwidth, real and complex matrix multiplication in double, single, and half precision, and 2D convolution using the Fast Fourier Transform. The authors report that high-level programming environments can reach near-peak hardware performance for these workloads and suggest that algorithms trading lower compute intensity for higher memory intensity have significant potential. The supplied text does not specify particular languages, accelerators, or measured performance figures.

### Source excerpt

arXiv:2611.05558v1 Announce Type: cross Abstract: High level programming languages and accelerators are powerful enablers for a wide range of applications. Accelerators offer significant performance via diverse numeric precision and increased memory bandwidth and capacity. These enable new algorithms to be explored. Construction of these algorithms can be enabled by the ready accessibility of these performance features in high-level languages. Achieving scalable vertical (within a compute node), precision (over various numeric precisions), and temporal (over different generations of hardware) performance while retaining productivity requires effective abstractions. Vectorized coding that expresses operations as high-level matrix mathematics has historically been an important method for achieving portable performance. This paper examines the performance availability across a wide range of precisions and hardware using simple vectorized coding techniques applied to several example programs that highlight bandwidth, real and complex matrix multiplication, and 2D convolution. The systems evaluated span nearly a decade of computing hardware, enabling direct comparison of performance gains over this period. This work demonstrates that near hardware peak performance is readily accessible from high-level programming environments. In particular for memory bandwidth, real and complex matrix multiplication in double/single/half precision, and 2D convolutions using the Fast Fourier Transform (FFT). Furthermore, algorithms that trade decreased compute intensity for increased memory intensity have significant potential.

## The Rise of Low Precision Floating Point

DevFeed: [The Rise of Low Precision Floating Point](<https://devfeed.tech/articles/the-rise-of-low-precision-floating-point-114362.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.00301>)

Author: Guy Lemieux, Michael L. Overton

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [floating-point](<https://devfeed.tech/topics/floating-point.md>), [quantization](<https://devfeed.tech/topics/quantization.md>)

Tags: [cs-ar](<https://devfeed.tech/tags/cs-ar.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-ms](<https://devfeed.tech/tags/cs-ms.md>), [cs-na](<https://devfeed.tech/tags/cs-na.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [math-na](<https://devfeed.tech/tags/math-na.md>), [precision](<https://devfeed.tech/tags/precision.md>)

### AI overview

Deep learning has helped drive a growing use of floating-point formats narrower than the 32-bit and 64-bit formats that became industry standards in 1985. These formats offer lower precision and reduced range. The article describes why they are becoming more common, the development of 16-bit, 8-bit, and 4-bit formats, and efforts to standardize them. The supplied text is an abstract and does not provide details about specific formats or standardization efforts.

### Source excerpt

arXiv:2611.00301v1 Announce Type: cross Abstract: Floating point computing has dominated scientific computations since the 1950s because of its versatile ability to approximate real numbers with both sufficiently high precision and sufficiently great range. Since 1985, two specific formats have become standard across the industry, one with 32 bits which is adequate for many purposes and one with 64 bits which allows numbers with both much higher precision and much greater range for applications where these are needed. However, during the past decade, deep learning has come to dominate computation, and narrower floating point formats with lower precision and reduced range have steadily become more common. In this article we discuss this phenomenon, why it is happening, how various 16-bit, 8-bit and even 4-bit floating point formats have been developed, and efforts to standardize these formats.

## GSoC 2026: Enable float80/float128 on Unsupported Targets for LLVM libc

DevFeed: [GSoC 2026: Enable float80/float128 on Unsupported Targets for LLVM libc](<https://devfeed.tech/articles/gsoc-2026-enable-float80-float128-on-unsupported-targets-for-llvm-libc-122899.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2026-08-22-gsoc-float80-and-float128-in-llvm-libc/>)

Author: Sukumar Sawant

Published: 2026-11-02T00:00:00Z

Content type: news

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [floating-point](<https://devfeed.tech/topics/floating-point.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>), [clang](<https://devfeed.tech/topics/clang.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [64-bit](<https://devfeed.tech/tags/64-bit.md>), [clang](<https://devfeed.tech/tags/clang.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [computer-science](<https://devfeed.tech/tags/computer-science.md>), [emulation](<https://devfeed.tech/tags/emulation.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [google](<https://devfeed.tech/tags/google.md>), [google-summer-of-code](<https://devfeed.tech/tags/google-summer-of-code.md>), [gsoc](<https://devfeed.tech/tags/gsoc.md>), [ieee](<https://devfeed.tech/tags/ieee.md>), [india](<https://devfeed.tech/tags/india.md>), [libc](<https://devfeed.tech/tags/libc.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [math](<https://devfeed.tech/tags/math.md>), [msvc](<https://devfeed.tech/tags/msvc.md>), [mumbai](<https://devfeed.tech/tags/mumbai.md>), [software](<https://devfeed.tech/tags/software.md>), [windows](<https://devfeed.tech/tags/windows.md>), [x86](<https://devfeed.tech/tags/x86.md>)

### AI overview

LLVM libc added software-emulated `Float128` and `Float80` so high-precision math code can build and be tested on targets lacking the corresponding native formats. The work added emulation types, operators and conversions, integrated them into floating-point support, and migrated `float128` math functions incrementally. A Windows build failure traced to `BigInt`'s zero-initialized member making it non-trivially constructible; moving initialization into constructors made `bit_cast` accept it. Testing also exposed ABI differences between native and emulated types, so migrated functions use emulation internally while retaining native `float128` parameters and returns when available. The article reports support for building and testing the types without native support and enabling `float128` functions on Windows with MSVC, macOS and GPU targets. Remaining work includes migrating more functions, adding explicit `float80` entrypoints and comparing performance.

### Source excerpt

Introduction Hello LLVM Community! I am Sukumar Sawant, Computer Science student at Mumbai University (VIT Mumbai), India. I had the pleasure of working on the project on introducing float80 and float128 (emulated) in LLVM libc as part of Google Summer of Code 2026 along with my mentors Tue Ly, Nicolas Celik and Krishna Pandey. "Why"? float80 and float128 are the two extended-precision floating-point formats LLVM libc supports. float80 is the 80-bit x87 extended precision format, with 1 sign bit, 15 exponent bits, and a 64-bit significand carrying an explicit integer bit. float128 is the IEEE 754 binary128 ("quad precision") format, with 1 sign bit, 15 exponent bits, and 112 stored mantissa bits. Both formats are already natively supported on several platforms, but not on all of them. For example: MSVC on Windows treats long double as a 64-bit double and has no native __float128 type. AArch64 targets typically use a 128-bit long double, but lack the 80-bit extended precision format entirely. Clang on certain non-x86 targets may not enable __float128 by default. This matters because LLVM libc needs to build and test its high-precision math routines consistently across every target it supports, not just the ones where these types happen to exist natively. Where the compiler provides no native type, the templated implementations cannot be compiled at all. The goal of this project was to lift that restriction by emulating both formats in software, so that the same templated implementations build and run everywhere, producing identical results whether the underlying type is native or emulated. The exact goals of this project were to: Add software emulation classes for the float80 and float128 formats. Provide the operator overloads and conversions needed for these classes to be used in place of the native types. Integrate the emulated types into the existing floating-point support infrastructure. Modify the existing float128 math functions to work correctly with the emul

## Protecting Floating-Point Computation for DNN Binaries with MBA Obfuscation

DevFeed: [Protecting Floating-Point Computation for DNN Binaries with MBA Obfuscation](<https://devfeed.tech/articles/protecting-floating-point-computation-for-dnn-binaries-with-mba-obfuscation-108995.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2607.17603>)

Author: Yikun Hu, Zichen Zhao, Peixiang Qin, Ziyi Zhou, Jiaping Gui, Yuandao Cai, Wensheng Tang

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [obfuscation](<https://devfeed.tech/topics/obfuscation.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>), [Security & Privacy](<https://devfeed.tech/topics/security-privacy.md>), [Reverse Engineering](<https://devfeed.tech/topics/reverse-engineering.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [arithmetic](<https://devfeed.tech/tags/arithmetic.md>), [binaries](<https://devfeed.tech/tags/binaries.md>), [computer-vision](<https://devfeed.tech/tags/computer-vision.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [data-privacy](<https://devfeed.tech/tags/data-privacy.md>), [devices](<https://devfeed.tech/tags/devices.md>), [dnn](<https://devfeed.tech/tags/dnn.md>), [error](<https://devfeed.tech/tags/error.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [obfuscation](<https://devfeed.tech/tags/obfuscation.md>), [performance](<https://devfeed.tech/tags/performance.md>), [precision](<https://devfeed.tech/tags/precision.md>), [reverse-engineering](<https://devfeed.tech/tags/reverse-engineering.md>), [theft](<https://devfeed.tech/tags/theft.md>)

### AI overview

FLOB aims to protect compiled DNN models from reverse engineering by obfuscating their floating-point computations with Mixed Boolean-Arithmetic (MBA) transformations. It lifts values into a higher-precision binary expansion space, performs computation there, and projects results back to the target precision. The authors report semantic equivalence under the original format without added rounding error, alongside a protection-performance trade-off. Against existing reverse-engineering analyzers and deobfuscators, FLOB reduced operator recovery to 4.51% on average, a 32.82 percentage-point reduction versus existing methods.

### Source excerpt

arXiv:2607.17603v4 Announce Type: replace Abstract: Deep neural networks (DNNs) have become a foundational component of modern computing systems with a wide range of applications, such as computer vision, edge intelligence, etc. For the sake of low latency and data privacy, DNN models are increasingly compiled into executables and deployed on local devices. However, that exposes the models to model theft, enabling adversaries to recover proprietary assets via reverse engineering techniques. While code obfuscation naturally emerges for protecting executables from reverse engineering, existing schemes are primarily designed for traditional programs, focusing on complex control flow structures and integer-based operations. They are fundamentally inappropriate for DNN binaries, which exhibit relatively simple code structures and heavily rely on floating-point computation. In this paper, we propose FLOB, an obfuscation framework that protects floating-point computations in DNN binaries using Mixed Boolean-Arithmetic (MBA) transformations. Our approach lifts floating-point values into a higher-precision binary expansion space and performs MBA transformations at the representation level. The computation is carried out entirely in the lifted space, and the final result is then projected back to the target precision, yielding outputs that are semantically equivalent under the original floating-point format, without introducing additional rounding error. The experimental results show that FLOB outperforms the state-of-the-art obfuscation schemes against existing reverse engineering analyzers and deobfuscators, while preserving computational correctness without introducing additional numerical error, allowing flexible trade-off between protection and performance. Specifically, FLOB reduces the operator recovery rate to 4.51% on average, achieving a 32.82 percentage-point reduction compared to existing methods.

## VIREL: Route-Local Lattice Residual Compression for Exact and Error-Bounded Floating-Point Time Series

DevFeed: [VIREL: Route-Local Lattice Residual Compression for Exact and Error-Bounded Floating-Point Time Series](<https://devfeed.tech/articles/virel-route-local-lattice-residual-compression-for-exact-and-error-bounded-floating-point-time-series-101500.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2607.22433>)

Author: Yue Zhang (Shanghai Jiao Tong University, Shanghai, China), Jiatao Lin (Shanghai Jiao Tong University, Shanghai, China), Haopeng Chen (Shanghai Jiao Tong University, Shanghai, China)

Published: 2026-10-27T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [Compression](<https://devfeed.tech/topics/compression.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>), [Time Series](<https://devfeed.tech/topics/time-series.md>), [Temporal data](<https://devfeed.tech/topics/temporal-data.md>), [data-engineering](<https://devfeed.tech/topics/data-engineering.md>), [Prometheus](<https://devfeed.tech/topics/prometheus.md>)

Tags: [compression](<https://devfeed.tech/tags/compression.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [databases](<https://devfeed.tech/tags/databases.md>), [error](<https://devfeed.tech/tags/error.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [lattice](<https://devfeed.tech/tags/lattice.md>), [local](<https://devfeed.tech/tags/local.md>), [point](<https://devfeed.tech/tags/point.md>), [route](<https://devfeed.tech/tags/route.md>), [series](<https://devfeed.tech/tags/series.md>), [time](<https://devfeed.tech/tags/time.md>), [time-series](<https://devfeed.tech/tags/time-series.md>)

### AI overview

VIREL compresses floating-point time-series pages by assigning values to a lattice only after replaying the decoder's arithmetic, then keeping separate lanes and histories for different decimal resolutions. This avoids making coarse values pay the cost of the finest scale in a mixed-resolution page. VIREL-Exact targets bit-exact recovery and is reported to succeed below 2^51; VIREL-EB uses a fused multiply-add on an error lattice to keep admitted values within ε. Both use one integer coder. In the reported benchmarks, VIREL-Exact emitted 27.6% fewer bytes than Falcon on 14 canonical streams. Its Fast variant beat ALP on ratio and speed, while Upper produced the smallest output on 48 larger streams; Fast ingest with Upper compaction used 48.7% of ALP's bytes in Apache TsFile. VIREL-EB beat Machete on ratio and speed in all 90 dataset-bound cells.

### Source excerpt

arXiv:2607.22433v3 Announce Type: replace Abstract: Time-series databases store floating-point columns in independent pages that are written at ingest, rewritten at compaction, and decoded on every scan. Some columns must return the stored IEEE 754 word; others accept a pointwise bound $\varepsilon$. Codecs for both contracts turn each value into an integer on a lattice, but a real page mixes decimal resolutions. Keeping one scale per block charges every coarse step for the finest value: one scale-6 reading in a 1,024-value page cuts Falcon's compression ratio by 36%. We present VIREL, route-local lattice residual compression. A value enters a lattice only after the encoder has replayed the decoder's arithmetic on it. VIREL-Exact replays the decoder's division at each value's least decimal scale, which we prove always succeeds below $2^{51}$, gives every resolution its own lane and history, and places averages on a rational lattice; the same finer value costs it 0.6%. VIREL-EB replays a fused multiply-add on an error lattice, so every admitted value decodes within $\varepsilon$. One integer coder serves both contracts. On 14 canonical streams, VIREL-Exact emits 27.6% fewer bytes than Falcon. Fast beats ALP on ratio and both speeds at once: 7.01$\times$ against 4.19$\times$, 476 against 120 MB/s, and 5.0 against 4.5 GB/s on one core. Upper is the smallest output on all 48 larger streams. Ingest with Fast and compaction with Upper store those streams in Apache TsFile at 48.7% of ALP's bytes. VIREL-EB beats Machete on ratio and both speeds in all 90 dataset-bound cells.

## A tenth of a microsecond became a third of a second

DevFeed: [A tenth of a microsecond became a third of a second](<https://devfeed.tech/articles/a-tenth-of-a-microsecond-became-a-third-of-a-second-97384.md>)

Original publisher: [Read original article](<https://newsletter.francofernando.com/p/a-tenth-of-a-microsecond-became-a>)

Author: Franco Fernando

Published: 2026-10-23T09:56:51Z

Content type: article

Language: en

Sources: [The Polymathic Engineer](<https://devfeed.tech/sources/the-polymathic-engineer.md>)

Topics: [floating-point](<https://devfeed.tech/topics/floating-point.md>), [Error Propagation](<https://devfeed.tech/topics/error-propagation.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [3](<https://devfeed.tech/tags/3.md>), [about](<https://devfeed.tech/tags/about.md>), [absolute](<https://devfeed.tech/tags/absolute.md>), [added](<https://devfeed.tech/tags/added.md>), [addition](<https://devfeed.tech/tags/addition.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-sre](<https://devfeed.tech/tags/ai-sre.md>), [alignment](<https://devfeed.tech/tags/alignment.md>), [all](<https://devfeed.tech/tags/all.md>), [also](<https://devfeed.tech/tags/also.md>), [approximation](<https://devfeed.tech/tags/approximation.md>), [arithmetic](<https://devfeed.tech/tags/arithmetic.md>), [army](<https://devfeed.tech/tags/army.md>), [battery](<https://devfeed.tech/tags/battery.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [isn-t](<https://devfeed.tech/tags/isn-t.md>), [point](<https://devfeed.tech/tags/point.md>), [time](<https://devfeed.tech/tags/time.md>)

### AI overview

The Patriot battery's clock stored 0.1 with a tiny truncation error; multiplying it across 3.6 million ticks made the clock about 0.34 seconds inaccurate. A software upgrade left some time reads using old code, so the tracking system compared accurate and inaccurate readings and searched the wrong location. The excerpt explains how rounding errors build up: adding a small value to a much larger one can lose it, subtraction of nearly equal values can cause cancellation, and multiplication can magnify existing error or overflow intermediate results. It also notes that operation order can change results. For comparisons, it recommends tolerances based on expected error and value magnitude, with an absolute tolerance near zero; ordering comparisons can be unreliable when results are uncertain. These points come from the supplied excerpt.

### Source excerpt

Floating-point errors are harmless one at a time. A chain of them isn't.

## Floating-Point Addition and Subtraction on Intel's 8087

DevFeed: [Floating-Point Addition and Subtraction on Intel's 8087](<https://devfeed.tech/articles/floating-point-addition-and-subtraction-on-intel-s-8087-95343.md>)

Original publisher: [Read original article](<https://hackaday.com/2026/10/22/floating-point-addition-and-subtraction-on-intels-8087/>)

Author: Maya Posch

Published: 2026-10-22T11:00:30Z

Content type: article

Language: en

Sources: [Hackaday](<https://devfeed.tech/sources/hackaday.md>)

Topics: [floating-point](<https://devfeed.tech/topics/floating-point.md>)

Tags: [3d](<https://devfeed.tech/tags/3d.md>), [8086](<https://devfeed.tech/tags/8086.md>), [8087](<https://devfeed.tech/tags/8087.md>), [addition](<https://devfeed.tech/tags/addition.md>), [cad](<https://devfeed.tech/tags/cad.md>), [cad-software](<https://devfeed.tech/tags/cad-software.md>), [circuits](<https://devfeed.tech/tags/circuits.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [games](<https://devfeed.tech/tags/games.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [intel](<https://devfeed.tech/tags/intel.md>), [intel-8087](<https://devfeed.tech/tags/intel-8087.md>), [isa](<https://devfeed.tech/tags/isa.md>), [ken-shirriff](<https://devfeed.tech/tags/ken-shirriff.md>), [rendering](<https://devfeed.tech/tags/rendering.md>), [reverse-engineering](<https://devfeed.tech/tags/reverse-engineering.md>), [silicon](<https://devfeed.tech/tags/silicon.md>), [software](<https://devfeed.tech/tags/software.md>), [teardown](<https://devfeed.tech/tags/teardown.md>), [theory](<https://devfeed.tech/tags/theory.md>)

### AI overview

Intel's 8087 made floating-point addition and subtraction roughly a hundred times faster than the 8086 in the account provided. Ken Shirriff reverse-engineered the coprocessor's circuitry and microcode, showing that these apparently simple operations require careful handling of value alignment, shifting, and overflow and underflow. The excerpt identifies the shifter and edge cases such as infinities as important parts of the implementation, and says the article includes a microcode listing. It presents dedicated hardware as making floating-point work more feasible in PC applications than doing the operations in integer-based software.

### Source excerpt

Although you can do basic floating point format operations like addition and subtraction just fine on any CPU, having specialized hardware for it can provide a significant speed boost. Here ...read more

## How to Round Numbers in Python

DevFeed: [How to Round Numbers in Python](<https://devfeed.tech/articles/how-to-round-numbers-in-python-89666.md>)

Original publisher: [Read original article](<https://realpython.com/python-rounding/>)

Author: David Amos

Published: 2026-10-18T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [bigdecimal](<https://devfeed.tech/topics/bigdecimal.md>), [pandas](<https://devfeed.tech/topics/pandas.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [arithmetic](<https://devfeed.tech/tags/arithmetic.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [numpy](<https://devfeed.tech/tags/numpy.md>), [pandas](<https://devfeed.tech/tags/pandas.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

This tutorial explains Python's built-in rounding behavior, including its round-half-to-even rule, and shows how rounding choices can affect data and introduce bias. It demonstrates alternative rounding strategies, exact decimal arithmetic with Python's decimal module, and rounding values in NumPy arrays and pandas objects.

### Source excerpt

Learn how Python's round() works, why it rounds 2.5 to 2, and how you can manage rounding errors with decimal, NumPy, and pandas.

## GSOC26: Sharing LLVM-libc's floating-point routines with compiler-rt

DevFeed: [GSOC26: Sharing LLVM-libc's floating-point routines with compiler-rt](<https://devfeed.tech/articles/gsoc26-sharing-llvm-libc-s-floating-point-routines-with-compiler-rt-64734.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2026-08-24-gsoc-sharing-libc-with-compiler-rt/>)

Author: Mohamed Emad

Published: 2026-10-05T00:00:00Z

Content type: article

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [Compiler](<https://devfeed.tech/topics/compiler.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>)

Tags: [assembly](<https://devfeed.tech/tags/assembly.md>), [build](<https://devfeed.tech/tags/build.md>), [builtins](<https://devfeed.tech/tags/builtins.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [compiler-rt](<https://devfeed.tech/tags/compiler-rt.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [gsoc](<https://devfeed.tech/tags/gsoc.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [headers](<https://devfeed.tech/tags/headers.md>), [libc](<https://devfeed.tech/tags/libc.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [math](<https://devfeed.tech/tags/math.md>)

### AI overview

The LLVM project describes sharing LLVM-libc floating-point math routines with compiler-rt, replacing duplicated soft-float implementations with thin wrappers that forward to shared routines. The approach is opt-in through a CMake macro, and the article covers implementation challenges involving recursive builtin calls, 16-bit formats, x87 extended precision, symbol conflicts, and generating wrappers, build entries, and tests. Benchmarking and optimization are planned, while some comparison and conversion work remains under review.

### Source excerpt

Introduction Hello LLVM community! I am Mohamed Emad, CSE student at Zagazig University, Egypt. This summer I worked on the next step of the Hand-in-Hand project, an effort that began in 2024 with #91651 to make LLVM-libc a shared foundation that the rest of LLVM can build on. My part was to share LLVM-libc's floating-point math routines with compiler-rt. It replaces compiler-rt's existing builtins, which were written from scratch in C and assembly with a separate implementation per architecture, with LLVM-libc's code, which is well-tested and well-maintained. Overview When a program targets hardware without a floating-point unit, the compilercannot emit an fadd or fcvt instruction. Instead it emits a call to a helperroutine: __adddf3 to add two doubles, __fixdfsi to convert a double to anint, __letf2 to compare two float128s. compiler-rt's builtins libraryships these routines, and it has carried its own soft-float implementations ofthem for years. LLVM-libc implements the same math independently, with correctly-rounded resultsand a large test suite behind it. So the project starts from an awkward fact:LLVM keeps two separate soft-float implementations of the same operations. Twocopies drift apart, each needs its own review and testing, and a bug fixed inone rarely reaches the other. compiler-rt's versions are also older and lessrigorously verified than libc's. This project gives compiler-rt one source of truth. LLVM-libc exposes itsroutines as freestanding headers under LIBC_NAMESPACE::shared::, and eachcompiler-rt builtin becomes a thin wrapper that forwards to the matching libcroutine. A single .c file such as truncdfsf2.c is swapped for atruncdfsf2.cpp that calls shared::truncdfsf2. The swap happens through aCMake macro, use_libc_builtin(), gated on COMPILER_RT_USE_LIBC_MATH, sodistributors who want the libc-backed path opt in and everyone else keeps theexisting behavior. Figure 1: Two soft-float implementations of the same operation become one shared LLVM-libc

## Float and integer arithmetic follow two different paradigms

DevFeed: [Float and integer arithmetic follow two different paradigms](<https://devfeed.tech/articles/float-and-integer-arithmetic-follow-two-different-paradigms-64618.md>)

Original publisher: [Read original article](<http://blog.pkh.me/p/49-float-and-integer-arithmetic-follow-two-different-paradigms.html>)

Published: 2026-10-04T16:16:40Z

Content type: article

Language: en

Sources: [Last Static](<https://devfeed.tech/sources/the-last-static-blog-rss.md>)

Topics: [floating-point](<https://devfeed.tech/topics/floating-point.md>), [typesafety](<https://devfeed.tech/topics/typesafety.md>)

Tags: [crash](<https://devfeed.tech/tags/crash.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [infinite](<https://devfeed.tech/tags/infinite.md>), [math](<https://devfeed.tech/tags/math.md>), [max](<https://devfeed.tech/tags/max.md>), [prevent](<https://devfeed.tech/tags/prevent.md>), [prog](<https://devfeed.tech/tags/prog.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [rust](<https://devfeed.tech/tags/rust.md>), [undefined-behavior](<https://devfeed.tech/tags/undefined-behavior.md>)

### AI overview

The article explains why floating-point and integer arithmetic require different error-handling approaches. It recommends checking whether floating-point results are finite instead of relying on arbitrary epsilon thresholds, while cautioning that finite results can still be numerically inaccurate. It also discusses limitations in GLSL and contrasts float handling with checked integer operations in C and Rust.

### Source excerpt

When working with floats, we tend to reuse the more familiar integer arithmetic patterns. More specifically, we always try to prevent a disaster rather than reacting to it. I keep noticing this pattern over and over again, and seeing that LLMs still get it wrong most of the time means that, either I am wrong, or everyone else is; it's obviously the latter, and I'm going to explain why. Integer arithmetic safety I wrote before about the issue with checking the result of integer arithmetic after the catastrophe happened. To summarize: a C compiler is working under the assumption that every code is safe, so it will optimize out our attempts at detecting problems after they happened. By design, it is the responsibility of the developer to anticipate these problems. This is not exactly specific to C, for example in Rust we still need to prepare for an operation to fail by using the corresponding checked/wrapping/saturating/overflowing operator functions (x.checked_div(y), x.saturating_add(y), etc). Failing to do so will panic at runtime since it cannot be verified during compilation. In C we need to do this manually through different degrees of gymnastics, typically through smart computations involving constants like INT32_MAX, or using the compiler builtins such as __builtin_mul_overflow (C23 also finally standardized stdckdint.h with ckd_* function helpers). Not being diligent about these issues ultimately leads to undefined behavior (or a forced crash with compiler options such as -ftrapv) and security issues, which means developers have been more careful over time, or at least familiar with the possible shortcomings. Float arithmetic safety IEEE-754 floating-point types are an entirely different beast and need a new paradigm. Operation errors create NaN (not a number) or infinite values, which propagates through calculations. They do not crash the program, and they're perfectly legitimate. Still, our habits push us to prepare for the worse, so we often see dysfunctio

## Reverse-engineering the vintage Intel 8087's tangent algorithm: more than CORDIC

DevFeed: [Reverse-engineering the vintage Intel 8087's tangent algorithm: more than CORDIC](<https://devfeed.tech/articles/reverse-engineering-the-vintage-intel-8087-s-tangent-algorithm-more-than-cordic-61196.md>)

Original publisher: [Read original article](<https://blog.adafruit.com/2026/09/28/reverse-engineering-the-vintage-intel-8087s-tangent-algorithm-more-than-cordic/>)

Author: Anne Barela

Published: 2026-09-28T13:22:51Z

Content type: article

Language: en

Sources: [Adafruit Industries](<https://devfeed.tech/sources/adafruit-industries-makers-hackers-artists-designers-and-engineers.md>)

Topics: [Reverse Engineering](<https://devfeed.tech/topics/reverse-engineering.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>), [Electrical engineering and computer science (EECS)](<https://devfeed.tech/topics/electrical-engineering-and-computer-science-eecs.md>), [Chip design](<https://devfeed.tech/topics/chip-design.md>)

Tags: [8087](<https://devfeed.tech/tags/8087.md>), [arithmetic](<https://devfeed.tech/tags/arithmetic.md>), [die-shot](<https://devfeed.tech/tags/die-shot.md>), [emulation](<https://devfeed.tech/tags/emulation.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [intel](<https://devfeed.tech/tags/intel.md>), [intel-8087](<https://devfeed.tech/tags/intel-8087.md>), [math](<https://devfeed.tech/tags/math.md>), [reverse-engineering](<https://devfeed.tech/tags/reverse-engineering.md>), [tangent](<https://devfeed.tech/tags/tangent.md>), [vintage-computing](<https://devfeed.tech/tags/vintage-computing.md>)

### AI overview

A teardown of Intel's 8087 floating-point coprocessor reconstructs its FPTAN tangent algorithm from the chip's microcode. The instruction combines 16 CORDIC steps with a Padé approximation, returning separate X and Y values for the programmer to divide.

### Source excerpt

Ken Shirriff has published another teardown of Intel's 8087 floating-point coprocessor on righto.com, this time covering the FPTAN tangent instruction. He removed the chip's lid with a chisel and imaged the die under a microscope, then read the 1648 micro-instructions in the microcode ROM to work out the algorithm. The 8087 computes a tangent in [...]

## CKKS -- Encryption and Decryption

DevFeed: [CKKS -- Encryption and Decryption](<https://devfeed.tech/articles/ckks-encryption-and-decryption-58865.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2026/09/23/ckks-encryption-and-decryption/>)

Published: 2026-09-23T17:09:48Z

Content type: tutorial

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [homomorphic encryption](<https://devfeed.tech/topics/homomorphic-encryption.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [polynomials](<https://devfeed.tech/topics/polynomials.md>), [Code](<https://devfeed.tech/topics/code.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>)

Tags: [also](<https://devfeed.tech/tags/also.md>), [ckks](<https://devfeed.tech/tags/ckks.md>), [ckks-tutorial](<https://devfeed.tech/tags/ckks-tutorial.md>), [code](<https://devfeed.tech/tags/code.md>), [cryptography](<https://devfeed.tech/tags/cryptography.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [homomorphic-encryption](<https://devfeed.tech/tags/homomorphic-encryption.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [polynomials](<https://devfeed.tech/tags/polynomials.md>), [programming](<https://devfeed.tech/tags/programming.md>), [python](<https://devfeed.tech/tags/python.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

A tutorial on implementing CKKS homomorphic encryption and decryption routines. It introduces the routines without a residue number system, explains polynomial representations and signed coefficients, and discusses how representation choices affect decoding and fixed-point results.

### Source excerpt

Table of Contents This is part of a tutorial series on the CKKS homomorphic encryption scheme. In the last article, we covered some groundwork about polynomials and the CKKS encoding method. This article covers the encryption and decryption routines. Notably, if you already know about CKKS, we will deviate from a usual treatment for explanatory purposes. In particular, we will first define CKKS encryption, decryption, and basic operations without using the residue number system (RNS).

[Next page](<https://devfeed.tech/topics/floating-point.md?cursor=WyIyMDI2LTA5LTIzVDE3OjA5OjQ4KzAwOjAwIiwgIjdmMWU0ZDY1LWIyYTUtNDMxZS04YWI5LTg4ZGM1YjA0YjMyZSJd>)