-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87279f7
commit 25a0994
Showing
3 changed files
with
666 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//! An signed 256-bit integer type. | ||
//! | ||
//! This aims to have feature parity with Rust's signed | ||
//! integer types, such as [i32][core::i32]. The documentation | ||
//! is based off of [i32][core::i32] for each method/member. | ||
// TODO: Document | ||
// TODO: Feature gate this... | ||
|
||
// FIXME: Add support for [Saturating][core::num::Saturating] and | ||
// [Wrapping][core::num::Wrapping] when we drop support for <1.74.0. | ||
|
||
/// The 256-bit signed integer type. | ||
/// | ||
/// This has the same binary representation as Apache Arrow's types, | ||
/// and therefore can safely be transmuted from one to the other. | ||
#[allow(non_camel_case_types)] | ||
#[derive(Copy, Clone, Default, PartialEq, Eq, Hash)] | ||
#[repr(C)] | ||
pub struct i256 { | ||
lo: u128, | ||
hi: i128, | ||
} | ||
|
||
impl i256 { | ||
// TODO: Here | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.