<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">






<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">---</span></p><p class="p1"><span style="background-color: rgba(255, 255, 255, 0);">testsuites/samples/utf32/utf32.h | 45 +-</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">1 file changed, 45 insertions(+), 0 deletion(-)</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">create mode 100644 testsuites/samples/utf32/utf32.h</span></p>
<p class="p2"><span style="background-color: rgba(255, 255, 255, 0);"><span class="s1"></span><br></span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">diff --git a/testsuites/samples/utf32/utf32.h b/testsuites/samples/utf32/utf32.h</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">index 83f6342ab3..5ebcdc9ef2 100644</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">--- /dev/null</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+++ b/testsuites/samples/utf32/utf32.h</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">@@ -0,0 +1,45 @@</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+/*</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ Copyright 2024 John Howard</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ All Rights Reserved.</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ CUBITS is a trademark of John Howard.</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ CUBITS means Capital, Underline, Bold, Italic, Texture, and Strike.</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ This file is part of the <a href="http://RTEMS.org">RTEMS.org</a> test suites samples.</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ Permission to use, copy, modify, and/or distribute this software for any</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ purpose with or without fee is hereby granted, provided that the above</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ copyright notice and this permission notice appear in all copies.</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+*/</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+/* Unicode & ISO 10646-2012 character ranges 0..\UFFFFFFFF. */</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+typedef int utf32;</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+/* Convert UTF32 Big Endian and Little Endian v ranges 0..0xFFFFFFFF. */</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+#define CONVERT_(v) ((((v) & 255) << 24) | ((((v) >> 8) & 255) << 16) | \</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+                   ((((v) >> 16) & 255) << 8) | (((v) >> 24) & 255))</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+/* Set zero-based nth bit of v ranges 0..0xFFFFFFFF. n ranges 0..31. */</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+#define SETBIT_(v,n) ((v) |= (1 << (n)))</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+/* Unset zero-based nth bit of v ranges 0..0xFFFFFFFF. n ranges 0..31. */</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+#define UNSETBIT_(v,n) ((v) &= ~(1 << (n)))</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+/* Test zero-based nth bit of v ranges 0..0xFFFFFFFF. n ranges 0..31. */</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+#define TESTBIT_(v,n) (((v) & (1 << (n))) != 0)</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+/* Unicode & ISO 10646-2012 codepoint v ranges 0..0x10FFFF. */</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+#define CODEPOINT_(v) ((v) &= 0x1FFFFF; (((v) > 0x10FFFF) ? ((v) & 0xFFFF) : (v))</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+/* CUBITS model: VGA, CGA, Custom, Texture, Cloudy, Glory, Shiny, Fiery. */</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+#define SETMODEL_(v,m) ((v) |= ((m) << 21))</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+/* CUBITS Texture ranges 0..255: VGA color index, CGA text attributes. */</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+#define SETTEXTURE_(v,m) ((v) |= ((m) << 24))</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">-- </span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">2.42.0</span></p><div dir="ltr"></div></body></html>