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 Mar 16, 2022
1 parent a32446d commit 8492f51
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 @@ -423,6 +423,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 8492f51

Please sign in to comment.