Displaying 3 results from an estimated 3 matches for "print_hex".
Did you mean:
print_help
2023 Feb 23
2
Possible NA Propagation Failure in RISC-V64 CPU?
...handle.
However, the RISC-V64 CPU does not behave as expected, at least the CPU I
am using (Starfive JH7100-7110).
Here are the relevant bit patterns. From my understanding, as IEEE only
regulates the bit patterns of NaN, R picks one of the bit patterns (ending
with 07a2) and declares it as NA.
# print_hex is a function to print the bit pattern in hex
> print_hex(0.1)
3fb999999999999a # same for RISC-V
> print_hex(NaN)
7ff8000000000000 # same for RISC-V
> print_hex(NA)
7ff00000000007a2 # same for RISC-V
> print_hex(NA+1)
7ff80000000007a2 # 7ff8000000000000 in RISC-V
> print_hex(NA*1)
7...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
...lguest.h"
+
+.text
+.align PAGE_SIZE
+
+.global start_hyper_text
+ .type start_hyper_text, @function
+start_hyper_text:
+
+.global host_syscall
+host_syscall:
+ .quad 0
+
+#define PRINT_L(L) \
+ PRINT_OUT($L)
+
+#define PRINT_N(n) \
+ PRINT_OUT($'0' + $n)
+
+#define PRINT_HEX(n) \
+ mov n, %cl; \
+ and $0xf, %cl; \
+ cmp $0xa, %cl; \
+ jge 11f; \
+ add $'0', %cl; \
+ jmp 12f; \
+11: add $('a' - 10), %cl; \
+12: PRINT_OUT(%cl);
+
+#define PRINT_NUM_BX \
+9: PRINT_HEX(%bl); \
+ shr $4, %...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
...lguest.h"
+
+.text
+.align PAGE_SIZE
+
+.global start_hyper_text
+ .type start_hyper_text, @function
+start_hyper_text:
+
+.global host_syscall
+host_syscall:
+ .quad 0
+
+#define PRINT_L(L) \
+ PRINT_OUT($L)
+
+#define PRINT_N(n) \
+ PRINT_OUT($'0' + $n)
+
+#define PRINT_HEX(n) \
+ mov n, %cl; \
+ and $0xf, %cl; \
+ cmp $0xa, %cl; \
+ jge 11f; \
+ add $'0', %cl; \
+ jmp 12f; \
+11: add $('a' - 10), %cl; \
+12: PRINT_OUT(%cl);
+
+#define PRINT_NUM_BX \
+9: PRINT_HEX(%bl); \
+ shr $4, %...