MCPcopy Create free account
hub / github.com/sparkjsdev/spark / uintBitsToFloat

Function uintBitsToFloat

src/utils.ts:40–43  ·  view source on GitHub ↗
(u: number)

Source from the content-addressed store, hash-verified

38
39// Reinterpret the bits of a uint32 as a float32
40export function uintBitsToFloat(u: number): number {
41 u32buffer[0] = u;
42 return f32buffer[0];
43}
44
45export const toHalf = supportsFloat16Array ? toHalfNative : toHalfJS;
46export const fromHalf = supportsFloat16Array ? fromHalfNative : fromHalfJS;

Callers 1

decodeExtSplatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected