aboutsummaryrefslogtreecommitdiffstats
path: root/common/threads.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-26 22:45:53 -0700
committerChris Robinson <[email protected]>2023-05-26 22:45:53 -0700
commit17b1b31320079d88bb80ba7da9504fd91231cd85 (patch)
treed048ab1bf71f3b8616e92d5addb3e6b15a1a25ef /common/threads.h
parent453677bc983a5c17a6d4426e845114bb7be9b770 (diff)
Update and clarify a comment
Diffstat (limited to 'common/threads.h')
-rw-r--r--common/threads.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/common/threads.h b/common/threads.h
index 1cdb5d8f..59fccd12 100644
--- a/common/threads.h
+++ b/common/threads.h
@@ -2,10 +2,13 @@
#define AL_THREADS_H
#if defined(__GNUC__) && defined(__i386__)
-/* force_align_arg_pointer is required for proper function arguments aligning
- * when SSE code is used. Some systems (Windows, QNX) do not guarantee our
- * thread functions will be properly aligned on the stack, even though GCC may
- * generate code with the assumption that it is. */
+/* force_align_arg_pointer may be required for proper stack alignment when SSE
+ * code is used. GCC generates code with the assumption the stack pointer is
+ * suitably aligned, while some systems (Windows, QNX) do not guarantee non-
+ * exported functions will be properly aligned when called externally, and
+ * older apps for other systems may have been built with a lower stack
+ * alignment than expected by newer builds.
+ */
#define FORCE_ALIGN __attribute__((force_align_arg_pointer))
#else
#define FORCE_ALIGN