Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wasi-libc
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
haskell-wasm
wasi-libc
Commits
7d2c90a6
Commit
7d2c90a6
authored
1 year ago
by
Cheng Shao
Browse files
Options
Downloads
Patches
Plain Diff
dlmalloc: avoid hard-wiring MALLOC_ALIGNMENT
parent
cfb96940
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlmalloc/src/dlmalloc.c
+3
-2
3 additions, 2 deletions
dlmalloc/src/dlmalloc.c
with
3 additions
and
2 deletions
dlmalloc/src/dlmalloc.c
+
3
−
2
View file @
7d2c90a6
// This file is a wrapper around malloc.c, which is the upstream source file.
// This file is a wrapper around malloc.c, which is the upstream source file.
// It sets configuration flags and controls which symbols are exported.
// It sets configuration flags and controls which symbols are exported.
#include
<stdalign.h>
#include
<stddef.h>
#include
<stddef.h>
#include
<malloc.h>
#include
<malloc.h>
...
@@ -27,8 +28,8 @@
...
@@ -27,8 +28,8 @@
#define NO_MALLINFO 1
#define NO_MALLINFO 1
#define NO_MALLOC_STATS 1
#define NO_MALLOC_STATS 1
//
Align malloc regions to 16, to avoid unaligned SIMD accesses.
//
Conform to C standard requirement
#define MALLOC_ALIGNMENT
16
#define MALLOC_ALIGNMENT
alignof(max_align_t)
// Declare errno values used by dlmalloc. We define them like this to avoid
// Declare errno values used by dlmalloc. We define them like this to avoid
// putting specific errno values in the ABI.
// putting specific errno values in the ABI.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment