Skip to content

Commit

Permalink
core_num__u32_8__BITS fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
franziskuskiefer committed Dec 19, 2023
1 parent c046667 commit f7fa4c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@
},
{
"file": "libcrux_hacl_glue.c"
},
{
"file": "core.c"
}
]
},
Expand Down
11 changes: 8 additions & 3 deletions libcrux/include/eurydice_glue.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#pragma once

#include "lowstar_endianness.h"
#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>

#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

// SLICES, ARRAYS, ETC.

Expand Down Expand Up @@ -78,8 +85,6 @@ static inline void core_ops_arith__i32_319__add_assign(int32_t *x0, int32_t *x1)
static inline uint8_t Eurydice_bitand_pv_u8(uint8_t *p, uint8_t v) { return (*p) & v; }
static inline uint8_t Eurydice_shr_pv_u8(uint8_t *p, int32_t v) { return (*p) >> v; }

static uint32_t core_num__u32_8__BITS = 32;

// ITERATORS

#define core_num_nonzero_NonZeroUsize size_t
Expand Down
2 changes: 1 addition & 1 deletion libcrux/include/internal/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static inline uint16_t core_num__u16_7__wrapping_add(uint16_t x0, uint16_t x1);

static inline uint8_t core_num__u8_6__wrapping_sub(uint8_t x0, uint8_t x1);

static uint32_t core_num__u32_8__BITS;
#define core_num__u32_8__BITS 32

typedef struct core_option_Option__uint32_t_s
{
Expand Down

0 comments on commit f7fa4c2

Please sign in to comment.