aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-04-10 20:26:17 -0400
committerDave Gauer <dave@ratfactor.com>2021-04-10 20:26:17 -0400
commitd192e528256f7b9986eddc511df01540bd0f62a2 (patch)
tree4801ec9096105c258c435412790456611d28c088 /patches
parent4251076b50082023f609e2823b143993f7749b57 (diff)
downloadziglings-d192e528256f7b9986eddc511df01540bd0f62a2.tar.gz
ziglings-d192e528256f7b9986eddc511df01540bd0f62a2.tar.bz2
ziglings-d192e528256f7b9986eddc511df01540bd0f62a2.tar.xz
ziglings-d192e528256f7b9986eddc511df01540bd0f62a2.zip
added ex064 builtins
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/064_builtins.patch6
1 files changed, 6 insertions, 0 deletions
diff --git a/patches/patches/064_builtins.patch b/patches/patches/064_builtins.patch
new file mode 100644
index 0000000..cdba367
--- /dev/null
+++ b/patches/patches/064_builtins.patch
@@ -0,0 +1,6 @@
+72,73c72,73
+< const tupni: u8 = @bitReverse(input);
+< print("{b:0>8} backwards is {b:0>8}.\n", .{input});
+---
+> const tupni: u8 = @bitReverse(u8, input);
+> print("{b:0>8} backwards is {b:0>8}.\n", .{input, tupni});