PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
int128.c File Reference
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
Include dependency graph for int128.c:

Go to the source code of this file.

Data Structures

union  uint128_split_t
 

Functions

static int32_t __distance (uint128_split_t a, uint128_split_t b)
 
static uint64_t __div128_64 (uint64_t high, uint64_t low, uint64_t divisor, uint64_t *remainder)
 
uint128_t __udivmodti4 (uint128_t a, uint128_t b, uint128_t *c)
 
int128_t __divti3 (int128_t a, int128_t b)
 

Function Documentation

◆ __distance()

static int32_t __distance ( uint128_split_t  a,
uint128_split_t  b 
)
inlinestatic

Definition at line 18 of file int128.c.

Here is the caller graph for this function:

◆ __div128_64()

static uint64_t __div128_64 ( uint64_t  high,
uint64_t  low,
uint64_t  divisor,
uint64_t remainder 
)
inlinestatic

Definition at line 25 of file int128.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ __udivmodti4()

uint128_t __udivmodti4 ( uint128_t  a,
uint128_t  b,
uint128_t c 
)

Definition at line 32 of file int128.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ __divti3()

int128_t __divti3 ( int128_t  a,
int128_t  b 
)

Definition at line 88 of file int128.c.

Here is the call graph for this function: