chiark
/
gitweb
/
~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d26ad21
)
base/dispatch.c: Add documentation for some internal functions.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 18 May 2016 08:17:01 +0000
(09:17 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 18 May 2016 08:17:01 +0000
(09:17 +0100)
base/dispatch.c
patch
|
blob
|
blame
|
history
diff --git
a/base/dispatch.c
b/base/dispatch.c
index 337f2bec8a453f458370b0d3e52c0e2a27827297..4b5e17a99cfeafc8c146ea3db0a9c1c379ba4541 100644
(file)
--- a/
base/dispatch.c
+++ b/
base/dispatch.c
@@
-101,6
+101,15
@@
static void cpuid(struct cpuid *cc, unsigned a, unsigned c)
static unsigned cpuid_maxleaf(void)
{ struct cpuid c; cpuid(&c, 0, 0); return (c.a); }
static unsigned cpuid_maxleaf(void)
{ struct cpuid c; cpuid(&c, 0, 0); return (c.a); }
+/* --- @cpuid_features_p@ --- *
+ *
+ * Arguments: @unsigned dbits@ = bits to check in EDX
+ * @unsigned cbits@ = bits to check in ECX
+ *
+ * Returns: Nonzero if all the requested bits are set in the CPUID result
+ * on leaf 1.
+ */
+
static int cpuid_features_p(unsigned dbits, unsigned cbits)
{
struct cpuid c;
static int cpuid_features_p(unsigned dbits, unsigned cbits)
{
struct cpuid c;
@@
-109,6
+118,14
@@
static int cpuid_features_p(unsigned dbits, unsigned cbits)
return ((c.d & dbits) == dbits && (c.c & cbits) == cbits);
}
return ((c.d & dbits) == dbits && (c.c & cbits) == cbits);
}
+/* --- @xmm_registers_available_p@ --- *
+ *
+ * Arguments: ---
+ *
+ * Returns: Nonzero if the operating system has made the XMM registers
+ * available for use.
+ */
+
static int xmm_registers_available_p(void)
{
#ifdef __GNUC__
static int xmm_registers_available_p(void)
{
#ifdef __GNUC__