arch/alpha/math-emu/sfp-util.h
Source file repositories/reference/linux-study-clean/arch/alpha/math-emu/sfp-util.h
File Facts
- System
- Linux kernel
- Corpus path
arch/alpha/math-emu/sfp-util.h- Extension
.h- Size
- 1008 bytes
- Lines
- 37
- Domain
- Architecture Layer
- Bucket
- arch/alpha
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
Dependency Surface
linux/kernel.hlinux/sched.hlinux/types.hasm/byteorder.hasm/fpu.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/types.h>
#include <asm/byteorder.h>
#include <asm/fpu.h>
#define add_ssaaaa(sh, sl, ah, al, bh, bl) \
((sl) = (al) + (bl), (sh) = (ah) + (bh) + ((sl) < (al)))
#define sub_ddmmss(sh, sl, ah, al, bh, bl) \
((sl) = (al) - (bl), (sh) = (ah) - (bh) - ((al) < (bl)))
#define umul_ppmm(wh, wl, u, v) \
__asm__ ("mulq %2,%3,%1; umulh %2,%3,%0" \
: "=r" ((UDItype)(wh)), \
"=&r" ((UDItype)(wl)) \
: "r" ((UDItype)(u)), \
"r" ((UDItype)(v)))
#define udiv_qrnnd(q, r, n1, n0, d) \
do { unsigned long __r; \
(q) = __udiv_qrnnd (&__r, (n1), (n0), (d)); \
(r) = __r; \
} while (0)
extern unsigned long __udiv_qrnnd (unsigned long *, unsigned long,
unsigned long , unsigned long);
#define UDIV_NEEDS_NORMALIZATION 1
#define abort() goto bad_insn
#ifndef __LITTLE_ENDIAN
#define __LITTLE_ENDIAN -1
#endif
#define __BYTE_ORDER __LITTLE_ENDIAN
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/sched.h`, `linux/types.h`, `asm/byteorder.h`, `asm/fpu.h`.
- Atlas domain: Architecture Layer / arch/alpha.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.