Skip to content

Commit

Permalink
C backend: 128-bit ints on big endian arch is not yet supported
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-dao committed Feb 4, 2022
1 parent 829ea92 commit 10c47c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/codegen/c.zig
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ pub const DeclGen = struct {

comptime assert(int_info.bits <= 128);

// TODO support big endian arch
comptime assert(builtin.cpu.arch.endian() == .Little);

// Clang and GCC don't support 128-bit integer constants but will hopefully unfold them
// if we construct one manually.
const magnitude = std.math.absCast(int_val);
Expand Down

0 comments on commit 10c47c5

Please sign in to comment.