Numworks Epsilon  1.4.1
Graphing Calculator Operating System
sequence.c File Reference
#include <string.h>
#include "py/runtime.h"

Go to the source code of this file.

Macros

#define SWAP(type, var1, var2)   { type t = var2; var2 = var1; var1 = t; }
 

Functions

void mp_seq_multiply (const void *items, size_t item_sz, size_t len, size_t times, void *dest)
 
mp_obj_t mp_seq_extract_slice (size_t len, const mp_obj_t *seq, mp_bound_slice_t *indexes)
 
bool mp_seq_cmp_bytes (mp_uint_t op, const byte *data1, size_t len1, const byte *data2, size_t len2)
 
bool mp_seq_cmp_objs (mp_uint_t op, const mp_obj_t *items1, size_t len1, const mp_obj_t *items2, size_t len2)
 
mp_obj_t mp_seq_index_obj (const mp_obj_t *items, size_t len, size_t n_args, const mp_obj_t *args)
 
mp_obj_t mp_seq_count_obj (const mp_obj_t *items, size_t len, mp_obj_t value)
 

Macro Definition Documentation

◆ SWAP

#define SWAP (   type,
  var1,
  var2 
)    { type t = var2; var2 = var1; var1 = t; }

Definition at line 34 of file sequence.c.

Function Documentation

◆ mp_seq_cmp_bytes()

bool mp_seq_cmp_bytes ( mp_uint_t  op,
const byte data1,
size_t  len1,
const byte data2,
size_t  len2 
)

Definition at line 150 of file sequence.c.

◆ mp_seq_cmp_objs()

bool mp_seq_cmp_objs ( mp_uint_t  op,
const mp_obj_t items1,
size_t  len1,
const mp_obj_t items2,
size_t  len2 
)

Definition at line 194 of file sequence.c.

◆ mp_seq_count_obj()

mp_obj_t mp_seq_count_obj ( const mp_obj_t items,
size_t  len,
mp_obj_t  value 
)

Definition at line 266 of file sequence.c.

◆ mp_seq_extract_slice()

mp_obj_t mp_seq_extract_slice ( size_t  len,
const mp_obj_t seq,
mp_bound_slice_t indexes 
)

Definition at line 126 of file sequence.c.

◆ mp_seq_index_obj()

mp_obj_t mp_seq_index_obj ( const mp_obj_t items,
size_t  len,
size_t  n_args,
const mp_obj_t args 
)

Definition at line 243 of file sequence.c.

◆ mp_seq_multiply()

void mp_seq_multiply ( const void *  items,
size_t  item_sz,
size_t  len,
size_t  times,
void *  dest 
)

Definition at line 38 of file sequence.c.