Finished fundamental data types

This commit is contained in:
Eduardo Cueto 2023-02-02 23:37:59 +00:00
parent a60fd79843
commit dc8dd2a8a8
19 changed files with 457 additions and 1 deletions

View File

@ -14,20 +14,68 @@ pub fn main() anyerror!void {
var age: u32 = 10; var age: u32 = 10;
age = 30; age = 30;
std.debug.print() std.debug.print("{}, size of age: {}\n", .{ age, @sizeOf(@TypeOf(age)) });
// Boolean // Boolean
// bool -> true, false // bool -> true, false
var is_old: bool = true;
_ = is_old;
// Floating-Point // Floating-Point
// f32, f64 // f32, f64
var pi: f64 = 3.14159;
_ = pi;
// Struct // Struct
// age -> i32 = size_of(i32) // age -> i32 = size_of(i32)
const User = struct {
age: i32,
// Member functions
// Static functions
};
_ = User;
const User2 = struct {
age: User,
};
_ = User;
std.debug.print("Size of User2: {}\n", .{@sizeOf(User2)});
// Enum // Enum
const Months = enum(u8) {
January,
February,
March,
_,
// namespaced function
};
var month: Months = .January;
std.debug.print("Month: {}\n", .{month});
// Unions // Unions
const UserOrMonth = union(enum) {
user: User,
month: Months,
};
var user_or_month: UserOrMonth = UserOrMonth{
.user = User{
.age = 20,
},
};
switch (user_or_month) {
.user => |u| {
std.log.info("User: {}\n", .{u});
},
else => {},
}
// Type // Type
} }

View File

@ -0,0 +1,2 @@
3876920 770796 1675377514226788461 73789a049c90b969017034b94b6aaf78 /home/eduardo/Documents/Programming/Zig/Learning-Zig/Fundamental-Data-Types/zig-cache/o/6cf4cf446232145874822955868041d2/build.o
65086 440444 1675209527032131460 ea52e45189c33a754be7ad9feda80053 /home/eduardo/.cache/zig/o/a6e65de42f0f3654a1ab19f185e6c91b/libcompiler_rt.a

View File

@ -0,0 +1,102 @@
16059 652386 1644893263000000000 1e73699d858279e705f4c0c2fe214dd6 /usr/share/zig/lib/std/special/build_runner.zig
1202 770679 1675377133582805943 a9519227e985dbe8679feb67542c4596 /home/eduardo/Documents/Programming/Zig/Learning-Zig/Fundamental-Data-Types/build.zig
2976 770793 1675377511697788577 f845d5f114e1bfebafde076cd2ceda3a /home/eduardo/Documents/Programming/Zig/Learning-Zig/Fundamental-Data-Types/zig-cache/o/6cf4cf446232145874822955868041d2/builtin.zig
5391 652049 1644893263000000000 99c935b1fadc1095742d1049c16b1f73 /usr/share/zig/lib/std/std.zig
16059 652386 1644893263000000000 1e73699d858279e705f4c0c2fe214dd6 /usr/share/zig/lib/std/special/build_runner.zig
5391 652049 1644893263000000000 99c935b1fadc1095742d1049c16b1f73 /usr/share/zig/lib/std/std.zig
26206 652597 1644893263000000000 dbc4cb0419e16d4a31e572375da82b3e /usr/share/zig/lib/std/builtin.zig
21855 652440 1644893263000000000 afc30f6da0dcf13f4d3062af48b3ac43 /usr/share/zig/lib/std/start.zig
61008 652443 1644893263000000000 5b49cc22b6b033715b219b2e4c6df7ac /usr/share/zig/lib/std/target.zig
88870 652035 1644893263000000000 a4e267754cdf9c71d18dca0dfe685156 /usr/share/zig/lib/std/target/x86.zig
57659 652050 1644893263000000000 db42026211aa4121bafe18a7268b343c /usr/share/zig/lib/std/math.zig
33618 652402 1644893263000000000 46535ad7f6a05d9584884e7b8ee186ce /usr/share/zig/lib/std/meta.zig
69235 652072 1644893263000000000 0d3521a7b6366f64005e31da1083e0b7 /usr/share/zig/lib/std/debug.zig
41844 652023 1644893263000000000 809081a3fa77d0f9424a2b6785a9c119 /usr/share/zig/lib/std/Thread.zig
7904 652567 1644893263000000000 f3b7ac95f2f098f334cb93310d8796bd /usr/share/zig/lib/std/Thread/Mutex.zig
6493 652455 1644893263000000000 2f1ab48b0aec09df8c98184641d2023d /usr/share/zig/lib/std/io.zig
118163 652071 1644893263000000000 5b76f8053fc57aaeea4755fbdbccfc60 /usr/share/zig/lib/std/fs.zig
41888 652592 1644893263000000000 53274430079e3e9594bd5428d82b9b4a /usr/share/zig/lib/std/fs/file.zig
256538 652045 1644893263000000000 db7c5a6deb052c7881eba11189dfc18a /usr/share/zig/lib/std/os.zig
152897 652116 1644893263000000000 e4227e4d75b6a322bbe98b52420692f4 /usr/share/zig/lib/std/os/linux.zig
99977 652130 1644893263000000000 29efc96c70131a7de02bb2142b49b720 /usr/share/zig/lib/std/os/linux/io_uring.zig
3436 652641 1644893263000000000 52b506e9785d2910ac0c6dc1bc00339b /usr/share/zig/lib/std/io/writer.zig
13907 652571 1644893263000000000 8076a44960496763cdf5c3049792e2e9 /usr/share/zig/lib/std/Thread/StaticResetEvent.zig
44172 652602 1644893263000000000 65ec5ab92c40065cd449953a6e6f852b /usr/share/zig/lib/std/elf.zig
12226 652125 1644893263000000000 ff3e45103aa47b16470414986abd383b /usr/share/zig/lib/std/os/linux/tls.zig
98183 652055 1644893263000000000 a61ad0621302b9f1305f66f425db3436 /usr/share/zig/lib/std/fmt.zig
107395 652401 1644893263000000000 fcbd1b4b8725bfa78591bba05d9c2d70 /usr/share/zig/lib/std/mem.zig
30557 652445 1644893263000000000 65c11e31a62933504f717be9e26f88d4 /usr/share/zig/lib/std/mem/Allocator.zig
83618 652480 1644893263000000000 58d5c5778b4baa1368571fa84697db80 /usr/share/zig/lib/std/hash_map.zig
42277 652651 1644893263000000000 bb8aca7bf5ec61c47aca7b6ebf08cb94 /usr/share/zig/lib/std/dwarf.zig
52325 652575 1644893263000000000 83b54eba3ec17b5646e8ef82d50bfb55 /usr/share/zig/lib/std/array_list.zig
16198 652136 1644893263000000000 33eeeaeaf18fad72f964812980a410e5 /usr/share/zig/lib/std/os/linux/x86_64.zig
5853 652647 1644893263000000000 e4ebd554fff4f4347909d2e820cd323d /usr/share/zig/lib/std/io/fixed_buffer_stream.zig
26615 652635 1644893263000000000 e3a5103fb13d3c32dbaebed1925a90dd /usr/share/zig/lib/std/io/reader.zig
1117 652648 1644893263000000000 3f2f071b498497f7d54bcfc458d51f5e /usr/share/zig/lib/std/io/seekable_stream.zig
15524 652454 1644893263000000000 fd35bd5ce692e376140efff780ae8fd9 /usr/share/zig/lib/std/leb128.zig
3578 652600 1644893263000000000 5be2b73bab9064c8b8fd700243bac785 /usr/share/zig/lib/std/dwarf/TAG.zig
6494 652601 1644893263000000000 bbb5283cec1c0d8bce4f3f0c930e7958 /usr/share/zig/lib/std/dwarf/AT.zig
50424 652589 1644893263000000000 12a03d3246107a6495b60c6a625c29a9 /usr/share/zig/lib/std/fs/path.zig
7889 652138 1644893263000000000 562fc4eee397a5037d16dffd5e048cd4 /usr/share/zig/lib/std/os/linux/errno/generic.zig
19105 652419 1644893263000000000 45e8137f667bfff4502578f66d4be5a5 /usr/share/zig/lib/std/meta/trait.zig
32421 652025 1644893263000000000 16ca37fd4f5ff96730ce35daff9ee049 /usr/share/zig/lib/std/unicode.zig
1314 652400 1644893263000000000 241bc6f0b7b0f07237a5e145b1d22a8a /usr/share/zig/lib/std/hash.zig
10122 652583 1644893263000000000 6372ee29c64a8e176138e879d43eb625 /usr/share/zig/lib/std/hash/wyhash.zig
45386 652481 1644893263000000000 70932a11a45b5bf5a34e6339a8941375 /usr/share/zig/lib/std/heap.zig
4685 652422 1644893263000000000 bccc2a1210ecea59d9b108bd05b44f4d /usr/share/zig/lib/std/heap/arena_allocator.zig
13435 652650 1644893263000000000 841107470272eebec404e2b902f8b639 /usr/share/zig/lib/std/linked_list.zig
31592 652562 1644893263000000000 32ddd57f125944112ecd368187c91caa /usr/share/zig/lib/std/process.zig
14238 652596 1644893263000000000 cfb89feb086c19f15610196212a5b39a /usr/share/zig/lib/std/dynamic_library.zig
9321 652570 1644893263000000000 6375a03982cbb853a43d3e581d5e5500 /usr/share/zig/lib/std/Thread/ResetEvent.zig
932 652438 1644893263000000000 b4c3b5276113dacf836baae9d9f94c34 /usr/share/zig/lib/std/event.zig
68675 652433 1644893263000000000 c63f2338b6b028fe35892da44a377363 /usr/share/zig/lib/std/event/loop.zig
2956 652573 1644893263000000000 224c7ee868b5251b2fb3a38a139de8ff /usr/share/zig/lib/std/atomic.zig
12142 652068 1644893263000000000 960f31a28097b764cc5fbb0f9205d56e /usr/share/zig/lib/std/atomic/queue.zig
22970 652067 1644893263000000000 2809286560339082772669bb49d3d305 /usr/share/zig/lib/std/atomic/Atomic.zig
10892 652576 1644893263000000000 31fc51ed299a6e4baa67fa98f200e96a /usr/share/zig/lib/std/time.zig
7373 652568 1644893263000000000 4d373c2c86127a7ec0f7b3ba579f054c /usr/share/zig/lib/std/Thread/AutoResetEvent.zig
5836 652069 1644893263000000000 7d2404322fa027582c27f4f202ec6a58 /usr/share/zig/lib/std/atomic/stack.zig
130030 652413 1644893263000000000 b5bcfefe1f2682213d633c67d7d018e1 /usr/share/zig/lib/std/build.zig
4284 652425 1644893263000000000 dd5d1dfc30582fed4b729389d4d4cb42 /usr/share/zig/lib/std/buf_map.zig
14075 652070 1644893263000000000 4b3e1692b4d50ecd14b797bcb6314471 /usr/share/zig/lib/std/zig.zig
382 652477 1644893263000000000 72d1274335940791012004d8be36418f /usr/share/zig/lib/std/zig/system.zig
42253 652470 1644893263000000000 0951cf7a39a2942a989c425d2624ca1e /usr/share/zig/lib/std/zig/system/NativeTargetInfo.zig
29399 652474 1644893263000000000 53707a24b1c58971ea63cc15e9b6ce07 /usr/share/zig/lib/std/zig/CrossTarget.zig
9090 652439 1644893263000000000 1180d90b55f45cb947269ff038108378 /usr/share/zig/lib/std/log.zig
14305 652399 1644893263000000000 8716e108c7b9d84bb406b0501748ffb1 /usr/share/zig/lib/std/ascii.zig
66319 652044 1644893263000000000 38807f5fb27a6c237cb73dfeed92c02b /usr/share/zig/lib/std/target/arm.zig
5414 652595 1644893263000000000 86e6f8806e70c6af94d5d60ee4a7bcc5 /usr/share/zig/lib/std/comptime_string_map.zig
64655 652047 1644893263000000000 f01914d0e21911461920e2cfe55c249d /usr/share/zig/lib/std/sort.zig
1202 770679 1675377133582805943 a9519227e985dbe8679feb67542c4596 /home/eduardo/Documents/Programming/Zig/Learning-Zig/Fundamental-Data-Types/build.zig
20625 652463 1644893263000000000 ee724a09d3ffe602d959fc33965b37e3 /usr/share/zig/lib/std/zig/system/x86.zig
3022 652412 1644893263000000000 d091305b8363db40bb9b526282e621d1 /usr/share/zig/lib/std/buf_set.zig
10729 652623 1644893263000000000 ed5da796ea68856f81d7505b2674e821 /usr/share/zig/lib/std/build/RunStep.zig
45116 652653 1644893263000000000 61ecaf2db0bd27af5c8a3a81c7aa6a51 /usr/share/zig/lib/std/child_process.zig
1165 652631 1644893263000000000 50efc7c5e5e9520d97cc0b49c050f5d5 /usr/share/zig/lib/std/io/counting_writer.zig
15782 652033 1644893263000000000 ab06ac27d4d611016df033b526f0e57a /usr/share/zig/lib/std/target/riscv.zig
9792 652027 1644893263000000000 f353172ed585b8bb875dbc84a48cbcdb /usr/share/zig/lib/std/target/nvptx.zig
13315 652039 1644893263000000000 a50b56e8c98285aaf633026174e1539e /usr/share/zig/lib/std/target/sparc.zig
61215 652030 1644893263000000000 a429f12b6db901f03e2d6c065d20e109 /usr/share/zig/lib/std/target/aarch64.zig
58985 652036 1644893263000000000 0e58ae3d7bd074b78d0b30b455b1de7a /usr/share/zig/lib/std/target/avr.zig
2207 652037 1644893263000000000 2feddb7106266f9cae15eadf50a8c386 /usr/share/zig/lib/std/target/bpf.zig
11877 652034 1644893263000000000 fc39b869036e4c818791cfe97298c47d /usr/share/zig/lib/std/target/hexagon.zig
15956 652043 1644893263000000000 e9120c6b03e428de62fb36e722a44a64 /usr/share/zig/lib/std/target/mips.zig
2206 652028 1644893263000000000 d6e20554da84c48e207022e2229de621 /usr/share/zig/lib/std/target/msp430.zig
30182 652031 1644893263000000000 0870c39e2beb71274e93386f2c0d86a8 /usr/share/zig/lib/std/target/powerpc.zig
55221 652038 1644893263000000000 be6f12ce9102c8e72d6a81cff673b1a1 /usr/share/zig/lib/std/target/amdgpu.zig
77180 652040 1644893263000000000 7d614d7e5dfd6b9838f81992975768fb /usr/share/zig/lib/std/target/spirv.zig
23954 652029 1644893263000000000 d560e058fb0aa249592791b30b91f3de /usr/share/zig/lib/std/target/systemz.zig
1240 652032 1644893263000000000 9dff7d081463c1d9d077dd4e999d0a41 /usr/share/zig/lib/std/target/ve.zig
3752 652041 1644893263000000000 f975b0361e27b9d179b40936dd4e5b3a /usr/share/zig/lib/std/target/wasm.zig
127499 652160 1644893263000000000 c34f941bc683d1597ce7899b65ef7fcc /usr/share/zig/lib/std/os/windows.zig
17584 652046 1644893263000000000 b1953658a17e327b1d08fad152181220 /usr/share/zig/lib/std/base64.zig
8864 652057 1644893263000000000 738e0bca47ce15392adf67703affdbdf /usr/share/zig/lib/std/crypto.zig
6380 652205 1644893263000000000 a27d71b6f5ec5ea0574905ead03f9e2b /usr/share/zig/lib/std/crypto/tlcsprng.zig
23439 652014 1644893263000000000 7a34e96c7e4f543dd0f365818acb93fc /usr/share/zig/lib/std/rand.zig
18611 652172 1644893263000000000 f1e4b9727b30db15e3b2efd7177d63b1 /usr/share/zig/lib/std/crypto/gimli.zig
19735 652403 1644893263000000000 6e7678248dfc65f416a8fd51dfa26c44 /usr/share/zig/lib/std/fifo.zig
1546 652645 1644893263000000000 38fb78325e3512a8614b1c1d75ff158b /usr/share/zig/lib/std/io/limited_reader.zig
18207 652415 1644893263000000000 3daf56112b1935b7c0da800597604de9 /usr/share/zig/lib/std/c.zig
11945 652607 1644893263000000000 4bd1ebdca6f82c5be7fcbec489529d87 /usr/share/zig/lib/std/c/linux.zig
36229 652654 1644893263000000000 8dd156aa070c627fc25ef402c82b8cb0 /usr/share/zig/lib/std/pdb.zig
13263 652074 1644893263000000000 52436f0b55cf344739d85e1b6989e029 /usr/share/zig/lib/std/coff.zig

View File

@ -0,0 +1,62 @@
1586 770681 1675380797065637688 d0869a977e80c9ca9dda64a95176d8ce /home/eduardo/Documents/Programming/Zig/Learning-Zig/Fundamental-Data-Types/src/main.zig
2976 770804 1675377514348788455 f845d5f114e1bfebafde076cd2ceda3a /home/eduardo/Documents/Programming/Zig/Learning-Zig/Fundamental-Data-Types/zig-cache/o/3e1c3378844a26a64e31f23c9162b156/builtin.zig
5391 652049 1644893263000000000 99c935b1fadc1095742d1049c16b1f73 /usr/share/zig/lib/std/std.zig
1586 770681 1675380797065637688 d0869a977e80c9ca9dda64a95176d8ce /home/eduardo/Documents/Programming/Zig/Learning-Zig/Fundamental-Data-Types/src/main.zig
5391 652049 1644893263000000000 99c935b1fadc1095742d1049c16b1f73 /usr/share/zig/lib/std/std.zig
26206 652597 1644893263000000000 dbc4cb0419e16d4a31e572375da82b3e /usr/share/zig/lib/std/builtin.zig
21855 652440 1644893263000000000 afc30f6da0dcf13f4d3062af48b3ac43 /usr/share/zig/lib/std/start.zig
61008 652443 1644893263000000000 5b49cc22b6b033715b219b2e4c6df7ac /usr/share/zig/lib/std/target.zig
88870 652035 1644893263000000000 a4e267754cdf9c71d18dca0dfe685156 /usr/share/zig/lib/std/target/x86.zig
57659 652050 1644893263000000000 db42026211aa4121bafe18a7268b343c /usr/share/zig/lib/std/math.zig
33618 652402 1644893263000000000 46535ad7f6a05d9584884e7b8ee186ce /usr/share/zig/lib/std/meta.zig
69235 652072 1644893263000000000 0d3521a7b6366f64005e31da1083e0b7 /usr/share/zig/lib/std/debug.zig
41844 652023 1644893263000000000 809081a3fa77d0f9424a2b6785a9c119 /usr/share/zig/lib/std/Thread.zig
7904 652567 1644893263000000000 f3b7ac95f2f098f334cb93310d8796bd /usr/share/zig/lib/std/Thread/Mutex.zig
6493 652455 1644893263000000000 2f1ab48b0aec09df8c98184641d2023d /usr/share/zig/lib/std/io.zig
118163 652071 1644893263000000000 5b76f8053fc57aaeea4755fbdbccfc60 /usr/share/zig/lib/std/fs.zig
41888 652592 1644893263000000000 53274430079e3e9594bd5428d82b9b4a /usr/share/zig/lib/std/fs/file.zig
256538 652045 1644893263000000000 db7c5a6deb052c7881eba11189dfc18a /usr/share/zig/lib/std/os.zig
152897 652116 1644893263000000000 e4227e4d75b6a322bbe98b52420692f4 /usr/share/zig/lib/std/os/linux.zig
99977 652130 1644893263000000000 29efc96c70131a7de02bb2142b49b720 /usr/share/zig/lib/std/os/linux/io_uring.zig
3436 652641 1644893263000000000 52b506e9785d2910ac0c6dc1bc00339b /usr/share/zig/lib/std/io/writer.zig
13907 652571 1644893263000000000 8076a44960496763cdf5c3049792e2e9 /usr/share/zig/lib/std/Thread/StaticResetEvent.zig
44172 652602 1644893263000000000 65ec5ab92c40065cd449953a6e6f852b /usr/share/zig/lib/std/elf.zig
12226 652125 1644893263000000000 ff3e45103aa47b16470414986abd383b /usr/share/zig/lib/std/os/linux/tls.zig
98183 652055 1644893263000000000 a61ad0621302b9f1305f66f425db3436 /usr/share/zig/lib/std/fmt.zig
107395 652401 1644893263000000000 fcbd1b4b8725bfa78591bba05d9c2d70 /usr/share/zig/lib/std/mem.zig
30557 652445 1644893263000000000 65c11e31a62933504f717be9e26f88d4 /usr/share/zig/lib/std/mem/Allocator.zig
83618 652480 1644893263000000000 58d5c5778b4baa1368571fa84697db80 /usr/share/zig/lib/std/hash_map.zig
42277 652651 1644893263000000000 bb8aca7bf5ec61c47aca7b6ebf08cb94 /usr/share/zig/lib/std/dwarf.zig
52325 652575 1644893263000000000 83b54eba3ec17b5646e8ef82d50bfb55 /usr/share/zig/lib/std/array_list.zig
16198 652136 1644893263000000000 33eeeaeaf18fad72f964812980a410e5 /usr/share/zig/lib/std/os/linux/x86_64.zig
5853 652647 1644893263000000000 e4ebd554fff4f4347909d2e820cd323d /usr/share/zig/lib/std/io/fixed_buffer_stream.zig
26615 652635 1644893263000000000 e3a5103fb13d3c32dbaebed1925a90dd /usr/share/zig/lib/std/io/reader.zig
1117 652648 1644893263000000000 3f2f071b498497f7d54bcfc458d51f5e /usr/share/zig/lib/std/io/seekable_stream.zig
15524 652454 1644893263000000000 fd35bd5ce692e376140efff780ae8fd9 /usr/share/zig/lib/std/leb128.zig
3578 652600 1644893263000000000 5be2b73bab9064c8b8fd700243bac785 /usr/share/zig/lib/std/dwarf/TAG.zig
6494 652601 1644893263000000000 bbb5283cec1c0d8bce4f3f0c930e7958 /usr/share/zig/lib/std/dwarf/AT.zig
50424 652589 1644893263000000000 12a03d3246107a6495b60c6a625c29a9 /usr/share/zig/lib/std/fs/path.zig
7889 652138 1644893263000000000 562fc4eee397a5037d16dffd5e048cd4 /usr/share/zig/lib/std/os/linux/errno/generic.zig
19105 652419 1644893263000000000 45e8137f667bfff4502578f66d4be5a5 /usr/share/zig/lib/std/meta/trait.zig
32421 652025 1644893263000000000 16ca37fd4f5ff96730ce35daff9ee049 /usr/share/zig/lib/std/unicode.zig
1314 652400 1644893263000000000 241bc6f0b7b0f07237a5e145b1d22a8a /usr/share/zig/lib/std/hash.zig
10122 652583 1644893263000000000 6372ee29c64a8e176138e879d43eb625 /usr/share/zig/lib/std/hash/wyhash.zig
45386 652481 1644893263000000000 70932a11a45b5bf5a34e6339a8941375 /usr/share/zig/lib/std/heap.zig
4685 652422 1644893263000000000 bccc2a1210ecea59d9b108bd05b44f4d /usr/share/zig/lib/std/heap/arena_allocator.zig
13435 652650 1644893263000000000 841107470272eebec404e2b902f8b639 /usr/share/zig/lib/std/linked_list.zig
31592 652562 1644893263000000000 32ddd57f125944112ecd368187c91caa /usr/share/zig/lib/std/process.zig
14238 652596 1644893263000000000 cfb89feb086c19f15610196212a5b39a /usr/share/zig/lib/std/dynamic_library.zig
9321 652570 1644893263000000000 6375a03982cbb853a43d3e581d5e5500 /usr/share/zig/lib/std/Thread/ResetEvent.zig
932 652438 1644893263000000000 b4c3b5276113dacf836baae9d9f94c34 /usr/share/zig/lib/std/event.zig
68675 652433 1644893263000000000 c63f2338b6b028fe35892da44a377363 /usr/share/zig/lib/std/event/loop.zig
2956 652573 1644893263000000000 224c7ee868b5251b2fb3a38a139de8ff /usr/share/zig/lib/std/atomic.zig
12142 652068 1644893263000000000 960f31a28097b764cc5fbb0f9205d56e /usr/share/zig/lib/std/atomic/queue.zig
22970 652067 1644893263000000000 2809286560339082772669bb49d3d305 /usr/share/zig/lib/std/atomic/Atomic.zig
10892 652576 1644893263000000000 31fc51ed299a6e4baa67fa98f200e96a /usr/share/zig/lib/std/time.zig
7373 652568 1644893263000000000 4d373c2c86127a7ec0f7b3ba579f054c /usr/share/zig/lib/std/Thread/AutoResetEvent.zig
5836 652069 1644893263000000000 7d2404322fa027582c27f4f202ec6a58 /usr/share/zig/lib/std/atomic/stack.zig
9090 652439 1644893263000000000 1180d90b55f45cb947269ff038108378 /usr/share/zig/lib/std/log.zig
6454 652527 1644893263000000000 5472dbfd6542719a2f23c0d565670e4e /usr/share/zig/lib/std/math/log2.zig
36229 652654 1644893263000000000 8dd156aa070c627fc25ef402c82b8cb0 /usr/share/zig/lib/std/pdb.zig
13263 652074 1644893263000000000 52436f0b55cf344739d85e1b6989e029 /usr/share/zig/lib/std/coff.zig
127499 652160 1644893263000000000 c34f941bc683d1597ce7899b65ef7fcc /usr/share/zig/lib/std/os/windows.zig

View File

@ -0,0 +1,2 @@
897536 770814 1675380822207636533 8a8b1fbcb440cf1ace010ac94f3f6332 /home/eduardo/Documents/Programming/Zig/Learning-Zig/Fundamental-Data-Types/zig-cache/o/3e1c3378844a26a64e31f23c9162b156/Fundamental-Data-Types.o
65086 440444 1675209527032131460 ea52e45189c33a754be7ad9feda80053 /home/eduardo/.cache/zig/o/a6e65de42f0f3654a1ab19f185e6c91b/libcompiler_rt.a

View File

@ -0,0 +1,118 @@
const std = @import("std");
/// Zig version. When writing code that supports multiple versions of Zig, prefer
/// feature detection (i.e. with `@hasDecl` or `@hasField`) over version checks.
pub const zig_version = std.SemanticVersion.parse("0.9.1") catch unreachable;
/// Temporary until self-hosted is feature complete.
pub const zig_is_stage2 = false;
/// Temporary until self-hosted supports the `cpu.arch` value.
pub const stage2_arch: std.Target.Cpu.Arch = .x86_64;
/// Temporary until self-hosted can call `std.Target.x86.featureSetHas` at comptime.
pub const stage2_x86_cx16 = true;
pub const output_mode = std.builtin.OutputMode.Exe;
pub const link_mode = std.builtin.LinkMode.Static;
pub const is_test = false;
pub const single_threaded = false;
pub const abi = std.Target.Abi.gnu;
pub const cpu: std.Target.Cpu = .{
.arch = .x86_64,
.model = &std.Target.x86.cpu.znver3,
.features = std.Target.x86.featureSet(&[_]std.Target.x86.Feature{
.@"64bit",
.adx,
.aes,
.avx,
.avx2,
.bmi,
.bmi2,
.branchfusion,
.clflushopt,
.clwb,
.clzero,
.cmov,
.cx16,
.cx8,
.f16c,
.fast_15bytenop,
.fast_bextr,
.fast_lzcnt,
.fast_movbe,
.fast_scalar_shift_masks,
.fast_variable_perlane_shuffle,
.fma,
.fsgsbase,
.fsrm,
.fxsr,
.invpcid,
.lzcnt,
.macrofusion,
.mmx,
.movbe,
.mwaitx,
.nopl,
.pclmul,
.pku,
.popcnt,
.prfchw,
.rdpid,
.rdrnd,
.rdseed,
.sahf,
.sha,
.shstk,
.slow_shld,
.sse,
.sse2,
.sse3,
.sse4_1,
.sse4_2,
.sse4a,
.ssse3,
.vaes,
.vpclmulqdq,
.vzeroupper,
.wbnoinvd,
.x87,
.xsave,
.xsavec,
.xsaveopt,
.xsaves,
}),
};
pub const os = std.Target.Os{
.tag = .linux,
.version_range = .{ .linux = .{
.range = .{
.min = .{
.major = 6,
.minor = 1,
.patch = 7,
},
.max = .{
.major = 6,
.minor = 1,
.patch = 7,
},
},
.glibc = .{
.major = 2,
.minor = 19,
.patch = 0,
},
}},
};
pub const target = std.Target{
.cpu = cpu,
.os = os,
.abi = abi,
};
pub const object_format = std.Target.ObjectFormat.elf;
pub const mode = std.builtin.Mode.Debug;
pub const link_libc = false;
pub const link_libcpp = false;
pub const have_error_return_tracing = true;
pub const valgrind_support = true;
pub const position_independent_code = false;
pub const position_independent_executable = false;
pub const strip_debug_info = false;
pub const code_model = std.builtin.CodeModel.default;

View File

@ -0,0 +1 @@
2d5bcd840dc01cb49be64bea995faa36

View File

@ -0,0 +1 @@
b31eb57b800ebf26b1fb1e8de6d2a93500

View File

@ -0,0 +1,118 @@
const std = @import("std");
/// Zig version. When writing code that supports multiple versions of Zig, prefer
/// feature detection (i.e. with `@hasDecl` or `@hasField`) over version checks.
pub const zig_version = std.SemanticVersion.parse("0.9.1") catch unreachable;
/// Temporary until self-hosted is feature complete.
pub const zig_is_stage2 = false;
/// Temporary until self-hosted supports the `cpu.arch` value.
pub const stage2_arch: std.Target.Cpu.Arch = .x86_64;
/// Temporary until self-hosted can call `std.Target.x86.featureSetHas` at comptime.
pub const stage2_x86_cx16 = true;
pub const output_mode = std.builtin.OutputMode.Exe;
pub const link_mode = std.builtin.LinkMode.Static;
pub const is_test = false;
pub const single_threaded = false;
pub const abi = std.Target.Abi.gnu;
pub const cpu: std.Target.Cpu = .{
.arch = .x86_64,
.model = &std.Target.x86.cpu.znver3,
.features = std.Target.x86.featureSet(&[_]std.Target.x86.Feature{
.@"64bit",
.adx,
.aes,
.avx,
.avx2,
.bmi,
.bmi2,
.branchfusion,
.clflushopt,
.clwb,
.clzero,
.cmov,
.cx16,
.cx8,
.f16c,
.fast_15bytenop,
.fast_bextr,
.fast_lzcnt,
.fast_movbe,
.fast_scalar_shift_masks,
.fast_variable_perlane_shuffle,
.fma,
.fsgsbase,
.fsrm,
.fxsr,
.invpcid,
.lzcnt,
.macrofusion,
.mmx,
.movbe,
.mwaitx,
.nopl,
.pclmul,
.pku,
.popcnt,
.prfchw,
.rdpid,
.rdrnd,
.rdseed,
.sahf,
.sha,
.shstk,
.slow_shld,
.sse,
.sse2,
.sse3,
.sse4_1,
.sse4_2,
.sse4a,
.ssse3,
.vaes,
.vpclmulqdq,
.vzeroupper,
.wbnoinvd,
.x87,
.xsave,
.xsavec,
.xsaveopt,
.xsaves,
}),
};
pub const os = std.Target.Os{
.tag = .linux,
.version_range = .{ .linux = .{
.range = .{
.min = .{
.major = 6,
.minor = 1,
.patch = 7,
},
.max = .{
.major = 6,
.minor = 1,
.patch = 7,
},
},
.glibc = .{
.major = 2,
.minor = 19,
.patch = 0,
},
}},
};
pub const target = std.Target{
.cpu = cpu,
.os = os,
.abi = abi,
};
pub const object_format = std.Target.ObjectFormat.elf;
pub const mode = std.builtin.Mode.Debug;
pub const link_libc = false;
pub const link_libcpp = false;
pub const have_error_return_tracing = true;
pub const valgrind_support = true;
pub const position_independent_code = false;
pub const position_independent_executable = false;
pub const strip_debug_info = false;
pub const code_model = std.builtin.CodeModel.default;

View File

@ -0,0 +1 @@
61aa330792ba35329fba3a347b9ec2c3

View File

@ -0,0 +1 @@
49d39f2221bda23af6454bdb95590d5700

Binary file not shown.